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

Create Table: permission_history #37

Open
17 of 24 tasks
Neecolaa opened this issue Sep 2, 2022 · 2 comments
Open
17 of 24 tasks

Create Table: permission_history #37

Neecolaa opened this issue Sep 2, 2022 · 2 comments
Labels
complexity: missing dependency Issue has dependencies feature: table creation p-feature: permissions PII: TRUE Table or function has or uses Personally Identifiable Information (PII) role: back end s: org stakeholder: the org (includes stats) s: VRMS stakeholder: VRMS size: 1pt Can be done in 4-6 hours

Comments

@Neecolaa
Copy link
Member

Neecolaa commented Sep 2, 2022

Dependency

Overview

We need to create the permission_history 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

  • identify and document table description (see spreadsheet under Resources)
    • if not, reach out to PD leads
  • compare and check off the data fields (below) against the ERD. Note any fields in the ERD that's missing from the list. (see Resources)
  • compare the check off associated tables (below) against the ERD. Note any associated tables in the ERD that's missing from the list (see Resources)
  • create a single model in Django (defining schema)
  • write a test for the relationships this model will have with other models (e.g., creating a user and assigning them a set of permissions on a project).
  • write an API end point
  • write API unit tests
  • document the endpoint

Resources/Instructions

Description

When a permission is overwritten in #22 a record of it will be stored in this table instead of being deleted.

All records that have dateEnded from the Permission table will be moved here 1:12 AM Pacific Time

Data Fields

  1. Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • (PK) id - int - Record Id
    • (FK) user_id - int - Record Id
    • (FK) project_id - int - Record Id
    • (FK) permission_type_id - int
    • (FK) practice_area_id - int - Record Id
    • granted - timestamp
    • ended - timestamp
    • (FK) created_by - int - User ID of who first granted the permission
    • (FK) updated_by - int - User ID of who last changed the permission
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None

Associated Tables

  1. Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • permission_type (many-to-one)
    • practice_area (many-to-one)
    • project (many-to-one)
    • user (many-to-one)
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None
@Neecolaa Neecolaa mentioned this issue Sep 2, 2022
39 tasks
@Neecolaa Neecolaa changed the title permission_history - for old permisisons, rather than delete Create Table: permission_history Sep 2, 2022
@Neecolaa

This comment was marked as resolved.

@fyliu fyliu added this to the All tables added milestone Sep 25, 2022
@ExperimentsInHonesty ExperimentsInHonesty added p-feature: permissions s: VRMS stakeholder: VRMS s: org stakeholder: the org (includes stats) and removed MVP-1 labels Mar 4, 2023
@ExperimentsInHonesty ExperimentsInHonesty added the PII: TRUE Table or function has or uses Personally Identifiable Information (PII) label May 4, 2023
@fyliu fyliu mentioned this issue May 18, 2023
33 tasks
@Neecolaa Neecolaa added the feature: ERD/SS adjustment Requires adjustments to be made to the ERD & Spreadsheet label Jul 8, 2023
@Neecolaa

This comment was marked as resolved.

@Neecolaa Neecolaa added dependency Issue has dependencies and removed feature: ERD/SS adjustment Requires adjustments to be made to the ERD & Spreadsheet labels Jan 14, 2024
@shmonks shmonks moved this to Ice Box in P: PD: Project Board Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: missing dependency Issue has dependencies feature: table creation p-feature: permissions PII: TRUE Table or function has or uses Personally Identifiable Information (PII) role: back end s: org stakeholder: the org (includes stats) s: VRMS stakeholder: VRMS size: 1pt Can be done in 4-6 hours
Projects
Status: 🧊Ice Box
Development

No branches or pull requests

3 participants