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: project_stack_element_xref #205

Open
10 tasks
Neecolaa opened this issue Sep 25, 2023 · 1 comment
Open
10 tasks

Create Table: project_stack_element_xref #205

Neecolaa opened this issue Sep 25, 2023 · 1 comment
Labels
complexity: missing draft This issue is not fully-written feature: table creation p-feature: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) ready for dev lead role: back end s: CTJ stakeholder: Civic Tech Jobs s: hackforla.org stakeholder: hackforla.org website s: VRMS stakeholder: VRMS size: 2pt Can be done in 7-12 hours

Comments

@Neecolaa
Copy link
Member

Neecolaa commented Sep 25, 2023

Dependency

Overview

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

  • 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

Joining project to stack_element (technologies, tools, and languages table)

Data Fields

  1. New fields
    • (PK) id - int - Record Id
    • (FK) project_id - int
    • (FK) stack_element_id - int - Record Id

Associated Tables

  1. New associations
    • stack_element (many-to-one)
    • project (many-to-one)

Testing ideas

Set the peopledepot project to have the python language in its stack

  • create a stack_element object of "python" with the "language" type
  • create the peopledepot project and associate the stack_element.
  • check that the peopledepot project stack associations contains the "python" language
@Neecolaa Neecolaa added role: back end size: 2pt Can be done in 7-12 hours feature: table creation role: db architect p-feature: projects project and projects s: CTJ stakeholder: Civic Tech Jobs s: VRMS stakeholder: VRMS s: hackforla.org stakeholder: hackforla.org website draft This issue is not fully-written dependency Issue has dependencies PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) feature: ERD/SS adjustment Requires adjustments to be made to the ERD & Spreadsheet labels Sep 25, 2023
@Neecolaa Neecolaa removed draft This issue is not fully-written role: db architect feature: ERD/SS adjustment Requires adjustments to be made to the ERD & Spreadsheet labels Sep 25, 2023
@Neecolaa Neecolaa changed the title Create Table: project_ttl_xref Create Table: project_stack_element_xref Sep 29, 2023
@alexlaw528 alexlaw528 self-assigned this Oct 31, 2023
@alexlaw528 alexlaw528 removed their assignment Nov 30, 2023
@fyliu
Copy link
Member

fyliu commented Mar 8, 2024

We may be able to use the django builtin many to many field for this since this model doesn't have extra custom fields.

We would be able to do something like peopledepot.stack to get the set of associated stack_elements. And python.projects to get the all the projects using python.

More links to reference in deciding if this is a good idea to do:

@fyliu fyliu mentioned this issue Sep 8, 2024
15 tasks
@shmonks shmonks moved this from 🧊Ice Box to 📋Prioritized Backlog in P: PD: Project Board Oct 10, 2024
@shmonks shmonks removed the dependency Issue has dependencies label Oct 10, 2024
@shmonks shmonks mentioned this issue Oct 10, 2024
5 tasks
@shmonks shmonks added the draft This issue is not fully-written label Oct 25, 2024
@shmonks shmonks moved this from 📋Prioritized Backlog to 🆕New Issue Review in P: PD: Project Board Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: missing draft This issue is not fully-written feature: table creation p-feature: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) ready for dev lead role: back end s: CTJ stakeholder: Civic Tech Jobs s: hackforla.org stakeholder: hackforla.org website s: VRMS stakeholder: VRMS size: 2pt Can be done in 7-12 hours
Projects
Status: 🆕New Issue Review
Development

No branches or pull requests

5 participants