-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Create Table: user_status_type #35
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I think that's a valid concern. Perhaps a I'm sure there are different ways to handle this; I just thought of 2 possibilities immediately and would love feedback. Option 1:
Option 2:
While I like Option 1 over Option 2, I'm curious to hear others' opinions. |
I just want to make sure I’m not misunderstanding this. I think a single user status is the high level requirement we need to meet. The implementation details might be up to us to discuss and decide. My suggestion above is to make user_status a many-to-many relationship to user, and to have a project field so that a project lead doesn’t mark a user as Time Away Hold for another project. So it would need a through table like the user_project_status you have, to hold this extra data for use by permission. |
Two issues came up in our discussion about this issue
We are likely going to use swagger (in use by other projects at hfla, and is the most popular externally) OverviewShort article that generally explains OpenAPI documentation What we would probably installA full featured Swagger installation option https://drf-yasg.readthedocs.io/en/stable/readme.html#features Swagger and Data DictionariesWhat Swagger has to say about data dictionaries https://swagger.io/docs/specification/data-models/dictionaries/ ExamplesCivicTechIndex (a hackforla project) uses swagger Swagger has an fake example that has more data in it PD Data dictionary |
We're using drf-spectacular (outputs documentation in OpenAPI3 format) in PD right now, and would rather not go back to drf-yasg (OpenAPI2) unless it's lacking some support we need. OpenAPI 3 allows more expressive documentation than OpenAPI 2.
peopledepot/app/core/api/views.py Lines 49 to 61 in 998d8ea
|
This comment was marked as outdated.
This comment was marked as outdated.
We need to discuss these or create ERs for them to move them off this issue.
|
A: The user status is derived by if the user has an active permission on any project (including CoPs) So in the future, if a person is not on a project, and is going to CoP meetings or assigned to a CoP issue, or Guide, then they are active. We will routinely remove people from issues for lack of activity, and VRMS/Zoom will track attendance at events.
A: I am not sure what you are asking regarding the data dictionary |
It sounds like we only need the status in the user table, and then maybe there needs to be backend automation(s) to check if the user
Summary:
|
@ExperimentsInHonesty It looks like the data dictionary decision does block this issue.
|
Hold this for discussion on Monday 08/11/24 discussion with VRMS - but it looks like we're going to err on the side of keeping the descriptions in the database for now. |
We discussed with VRMS and decided to keep descriptions in the database for now. |
Overview
We need to create the
user_status_type
table so that we can update a shared data store across hackforla.org, vrms, civictechjobs, and tables (onboarding) project.Details
A table and a model are the same thing
Action Items
Resources/Instructions
Description
User Status
Data Fields
Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)
In ERD only (having items here indicates a mismatch, which requires a review)
Associated Tables
Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)
In ERD only (having items here indicates a mismatch, which requires a review)
The text was updated successfully, but these errors were encountered: