Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alter json api routes to require role: uploader #1664

Merged
merged 6 commits into from
Aug 29, 2024

Conversation

jamestranovich-noaa
Copy link
Collaborator

What does this PR do? 🛠️

Alters the route such that the role uploader is required to access resources. Addresses #1659 -- we can still prevent GET but I'm feeling happier about this approach.

What does the reviewer need to know? 🤔

Note: depends on the previous JSON API PR

Copy link
Collaborator

@greg-does-weather greg-does-weather left a comment

Choose a reason for hiding this comment

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

This is a really clean solution. I love it!

One small question, and up to you whether you want to do anything with it. Would it make sense to move this into the weather_cms module instead of the weather_login module? Code organization is a neverending, unsolvable problem so there's no right answer. We also have weather_routes that might make sense? We should probably get together as a team and define some basic boundaries for these modules, so we have a shared understanding of what they’re for and what kinds of things go in them.

@jamestranovich-noaa jamestranovich-noaa merged commit 0ad44a2 into jt/json-api Aug 29, 2024
6 checks passed
@jamestranovich-noaa jamestranovich-noaa deleted the jt/json-api-perms branch August 29, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants