Skip to content

Add authorization to GraphQL #13511

Merged
andreslucena merged 39 commits intodevelopfrom
fix/fix-graphql-type
Dec 11, 2024
Merged

Add authorization to GraphQL #13511
andreslucena merged 39 commits intodevelopfrom
fix/fix-graphql-type

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

🎩 What? Why?

We are adding basic authorization to GraphQL, so that we avoid displaying unpublished entries.

📌 Related Issues

Link your PR to an issue

  • Related to #?
  • Fixes #?

Testing

Browse the API, and see that you can request or view deleted or moderated content.

♥️ Thank you!

@alecslupu alecslupu added the type: fix PRs that implement a fix for a bug label Oct 9, 2024
@alecslupu alecslupu added this to the 0.30.0 milestone Oct 9, 2024
@alecslupu alecslupu requested a review from andreslucena October 9, 2024 15:27
github-actions[bot]
github-actions bot previously approved these changes Oct 9, 2024
@alecslupu alecslupu marked this pull request as ready for review October 10, 2024 04:29
github-actions[bot]
github-actions bot previously approved these changes Oct 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 11, 2024
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned, I think this is the correct approach, as it's what I would expect from this fix.

I have lots of comments but you'll see that there are only like 4 distinct, so it should not be difficult to implement them

github-actions[bot]
github-actions bot previously approved these changes Oct 30, 2024
@andreslucena andreslucena removed this from the 0.30.0 milestone Nov 18, 2024
alecslupu and others added 2 commits November 18, 2024 17:49
* Additional GraphQL fixes

* More fixes

* Fix spec

* Add specs

* Fix specs

* Fix permission

* Apply review recommendations

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* Apply review recommendations

* Refactor specs

* Apply review recommendations

* Running linters

---------

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
github-actions[bot]
github-actions bot previously approved these changes Nov 19, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 19, 2024
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave it a last spin locally and could not come up with other use cases or examples.

The only thing that I had doubts was regarding #13122, but as far as I understand that's covered by the unpublished examples. If there's something that I'm missing please let me know (and we can work it out in another PR if so)

@andreslucena andreslucena merged commit c40e65d into develop Dec 11, 2024
@andreslucena andreslucena deleted the fix/fix-graphql-type branch December 11, 2024 09:27
antopalidi pushed a commit that referenced this pull request Dec 16, 2024
* Temp commit

* Adding authorization layer

* Add more permission checks

* Running linters

* Add Commentable tests

* Fix spec

* Do not show the moderated or deleted comments

* Add conditions for comments, users and user groups

* Fixing specs

* Fix latest round of specs

* Fix organization spec

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* Add Praticipatory space is private but transparent

* Add Praticipatory space is private but transparent for accountability

* Add Praticipatory space is private but transparent for debates

* Add Praticipatory space is private but transparent for meetings

* Add Praticipatory space is private but transparent for forms

* Add Praticipatory space is private but transparent for proposals

* Add Praticipatory space is private but transparent for sortitions

* Linting

* Fix visibility on assemblies

* Refactor

* Fix specs

* Fix specs

* Fix specs, refactor the name of specs

* Additional GraphQL fixes (#13602)

* Additional GraphQL fixes

* More fixes

* Fix spec

* Add specs

* Fix specs

* Fix permission

* Apply review recommendations

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* Apply review recommendations

* Refactor specs

* Apply review recommendations

* Running linters

---------

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* Refactor context to avoid codeclimate

* running lint

* Fix specs

---------

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

criticality: high type: fix PRs that implement a fix for a bug

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants