Open fyliu opened 2 years ago
class Accomplishment(AbstractBaseModel):
"""
Accomplishment
"""
id = models.IntegerField(primary_key=True)
title = models.CharField(max_length=255)
description = models.CharField(max_length=3)
url = models.URLField(blank=True)
accomplished_on = models.DateField()
created_date = models.DateTimeField()
last_updated = models.DateTimeField()
project_id = models.ForeignKey(Project, on_delete=models.CASCADE)
def __str__(self):
return f"{self.name}"
The project_id field can be null. If it is null, the url field must be filled. If the project_id is not null, the url field can still be filled if there's an alternative web page for the specific accomplishment.
I'm not sure if this is something we can enforce in django, or if it counts as a business rule that another team will enforce.
@fyliu please clean up this issue so that all the necessary information is in the top.
Added validation action items, resource link, and requirements to the issue description. Reverified that the fields in this issue matches the ones in the ERD. This is ready for prioritization.
See comments in #61 to see whether this table is still needed. I'm confused because accomplishment_type
was renamed to win_type
, so should this table be win
, but there's already an issue for the win
table.
Update: turns out accomplishment doesn't have a type because there's no set categories for it.
For 10/24/2024 meeting: I won't be at the meeting tomorrow
Progress: Not started yet. Blockers: None yet Availability: Flexible between 5pm - 9pm on weekdays. ETA: Will work over the weekend
For 10/30/2024 meeting:
Progress: Not started yet. Blockers: Been focusing on PR updates (#385 and #400) for other tasks and reviewing. Once those are done or don't have any lingering issues to fix, I can dedicate more time to this. Availability: Flexible between 5pm - 9pm on weekdays and the weekend. ETA: Will work over the weekend
@drakeredwind01 Just the usual update request ahead of today's meeting.
Please provide update
created "class Accomplishment(AbstractBaseModel)" working on API then will run a test to make sure they work
finished:
need help:
Please provide update
Overview
We need to create the accomplishment 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
List of Accomplishments associated with a project
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)
Custom Validation
The project_id field can be null.
project_id
is null, theurl
field must be filledproject_id
is not null, theurl
field can still be filled if there's an alternative web page for the specific accomplishment