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_url #41

Open
14 of 19 tasks
Neecolaa opened this issue Sep 3, 2022 · 3 comments
Open
14 of 19 tasks

Create Table: project_url #41

Neecolaa opened this issue Sep 3, 2022 · 3 comments
Labels
complexity: missing dependency Issue has dependencies feature: table creation p-feature: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) 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 3, 2022

Dependencies

Overview

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

  • add issue link to the tables tab of the spreadsheet
  • identify and document table description (see spreadsheet under Resources)
  • 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

Collection of URLs for a project by url type

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) project_id - int - Record Id
    • (FK) url_type_id - int - Record Id
    • name - CharField(max_length=255)
    • external_id - CharField(max_length=255)
    • url - url varchar
    • (FK) status_id - int - Record Id
  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)

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

    • None
@Neecolaa Neecolaa mentioned this issue Sep 3, 2022
39 tasks
@fyliu fyliu added good first issue Good for newcomers and removed good first issue Good for newcomers labels Sep 20, 2022
@fyliu fyliu added this to the All tables added milestone Sep 25, 2022
@joshuayhwu
Copy link


class Project_URL(AbstractBaseModel):
	"""
	project_url
	"""
	id = models.IntegerField(primary_key=True)
	project_Id = models.ForeignKey(Project, on_delete=models.CASCADE)
	url_type_id = models.ForeignKey(Project, on_delete=models.CASCADE)
	url = models.URLField(blank=True) 

	def __str__(self): 
		return f"{self.name}" 

@ExperimentsInHonesty ExperimentsInHonesty added s: CTJ stakeholder: Civic Tech Jobs s: VRMS stakeholder: VRMS s: hackforla.org stakeholder: hackforla.org website and removed stakeholder: missing labels Mar 5, 2023
@ExperimentsInHonesty ExperimentsInHonesty added the PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) label May 4, 2023
@fyliu
Copy link
Member

fyliu commented May 20, 2023

This is better done after #77 since it references that table.

@Neecolaa

This comment was marked as resolved.

@Neecolaa Neecolaa mentioned this issue Nov 30, 2023
13 tasks
@Neecolaa Neecolaa added the dependency Issue has dependencies label Nov 30, 2023
@shmonks shmonks moved this to Ice Box in P: PD: Project Board Jun 7, 2024
@dmartin4820 dmartin4820 moved this from 🧊Ice Box to 🆕New Issue Review in P: PD: Project Board Nov 13, 2024
@shmonks shmonks moved this from 🆕New Issue Review to 🧊Ice Box in P: PD: Project Board Nov 14, 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: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) 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: 🧊Ice Box
Development

No branches or pull requests

4 participants