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

Authentication and projects #60

Merged
merged 51 commits into from
Oct 1, 2024
Merged

Authentication and projects #60

merged 51 commits into from
Oct 1, 2024

Conversation

annehaley
Copy link
Collaborator

@annehaley annehaley commented Aug 15, 2024

Resolves #52. Resolves #53.

This PR adds users and authentication to UVDAT. With this change, we can also change the structure with which we group Datasets. Instead of Contexts, we now have Projects, which have all the functionality of Contexts plus user access control. A user can belong in one of three categories on a given Project: 1) followers have read-only permissions, 2) collaborators have read-write permissions, and 3) the owner has read, write, and delete permissions. Superusers have read, write, and delete permissions on everything.

UI changes to provide an interface for Project configuration are in #66.

@annehaley annehaley added this to the Milestone 1 milestone Aug 15, 2024
@annehaley annehaley marked this pull request as ready for review August 21, 2024 18:11
@annehaley annehaley requested a review from jjnesbitt August 21, 2024 18:11
Base automatically changed from use_cases to master August 21, 2024 18:23
@annehaley annehaley removed the request for review from jjnesbitt August 26, 2024 13:24
@annehaley annehaley marked this pull request as draft August 26, 2024 13:24
@annehaley
Copy link
Collaborator Author

@jjnesbitt I discovered that the OpenLayers implementation of tile loadiing will not work with this branch due to a lack of authentication. I spent a while trying to add authentication to those requests, but I didn't want to expend too much effort getting it to work, since you'll be writing a MapLibre implementation. Let's hold off on this branch until after switching to MapLibre. I'll base my branch on yours and add authentication to that implementation.

@faiza-a
Copy link

faiza-a commented Sep 10, 2024

Figma Mockups link.

@annehaley annehaley changed the base branch from master to maplibre-gl September 17, 2024 18:42
@annehaley annehaley force-pushed the auth-and-projects branch 6 times, most recently from 806bb29 to f543ca5 Compare September 19, 2024 20:45
@annehaley annehaley marked this pull request as ready for review September 20, 2024 19:31
@annehaley annehaley requested a review from jjnesbitt September 20, 2024 19:51
Base automatically changed from maplibre-gl to master September 25, 2024 17:11
annehaley and others added 7 commits September 30, 2024 16:18
@annehaley annehaley requested a review from jjnesbitt September 30, 2024 20:31
- Explicitly define allowed values
- Use a transaction, to ensure no inconsistent data
- Overwrite permissions, by deleting all existing first
For some reason, initially setting the map center and zoom would set the
latitude to 0, only the first time.
@annehaley annehaley force-pushed the auth-and-projects branch 2 times, most recently from fdedb21 to 995111d Compare September 30, 2024 23:27
@annehaley annehaley merged commit 6a3c0d4 into master Oct 1, 2024
4 checks passed
@annehaley annehaley deleted the auth-and-projects branch October 1, 2024 17:50
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.

Replace Context model with Project model Implement user authentication
3 participants