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 a new table for announcements #2339

Open
3 tasks
SAUMILDHANKAR opened this issue Jan 28, 2025 · 2 comments · May be fixed by #2358 or #2387
Open
3 tasks

Create a new table for announcements #2339

SAUMILDHANKAR opened this issue Jan 28, 2025 · 2 comments · May be fixed by #2358 or #2387
Assignees
Labels
Interface: Admin Dashboard Admin dashboard page Interface: Food Seeker Milestone: Existing Feature Improvements Missing: Milestone This issue is not part of any milestone p-feature: announcements Priority - Med Needs to be in the next release Role: Database size: 2pt The lift to complete this user story 3-4hrs

Comments

@SAUMILDHANKAR
Copy link
Member

SAUMILDHANKAR commented Jan 28, 2025

Overview

This issue is related to issue #2326
We need to add a table in our database for announcement dialog.
We would be using create and update CRUD operations for this table as we want to keep track of all old announcements or delete the old ones

Action Items

  • Create a table in your local database.
  • Use migration script to add it to the production database.
  • Once the PR associated with this issue is merged or this issue is closed, check issue Feature: Announcement bar (for holidays, emergencies, etc.) #2326, if all its sub-issues are marked complete, move that issue to the prioritized backlog column so someone can pick it up and check if that issue is complete or needs more work.

Resources/Instructions

@SAUMILDHANKAR SAUMILDHANKAR added Missing: Feature The feature tag is missing for this issue Missing: Milestone This issue is not part of any milestone Missing: Role The role is missing from this issue Missing: Size The effort estimate for this issue is missing labels Jan 28, 2025
@github-project-automation github-project-automation bot moved this to New Issue Approval in P: FOLA: Project Board Jan 28, 2025
@SAUMILDHANKAR SAUMILDHANKAR added draft size: 2pt The lift to complete this user story 3-4hrs Feature: Usability Issues that make it easy for visitors to find the information they need quickly and easily Role: Database Milestone: Existing Feature Improvements Priority - Med Needs to be in the next release and removed Missing: Feature The feature tag is missing for this issue Missing: Size The effort estimate for this issue is missing Missing: Role The role is missing from this issue Missing: Milestone This issue is not part of any milestone labels Jan 28, 2025
@SAUMILDHANKAR SAUMILDHANKAR moved this from New Issue Approval to Prioritized Backlog in P: FOLA: Project Board Feb 6, 2025
@SAUMILDHANKAR SAUMILDHANKAR self-assigned this Feb 7, 2025
@SAUMILDHANKAR SAUMILDHANKAR moved this from Prioritized Backlog to In Progress in P: FOLA: Project Board Feb 7, 2025
@SAUMILDHANKAR SAUMILDHANKAR linked a pull request Feb 16, 2025 that will close this issue
@SAUMILDHANKAR
Copy link
Member Author

SAUMILDHANKAR commented Feb 17, 2025

Thanks @hanapotski @junjun107 for helping me setting up local database.

Progress Update:

  1. I installed PostGIS version 15 (I had postgres installed earlier but wasn't able to connect to local database and during pair programming realized that PostGIS was missing).
  2. Downloaded and connected to the database using Tableplus.
  3. Created a generic table to be used for notifications.
  4. Started working on setting up the endpoints.

@ExperimentsInHonesty ExperimentsInHonesty added the Missing: Milestone This issue is not part of any milestone label Feb 24, 2025
@SAUMILDHANKAR
Copy link
Member Author

SAUMILDHANKAR commented Mar 6, 2025

Progress Update:

  1. Using PRs Add endpoints for feature table #1978 and 1983 UI for managing feature flags #2033 as reference, I created following files in my local branch to connect the server with a new table in the database:
    • types.ts file in server.
    • service.ts file in server/app/services.
    • router.ts file in server/app/routers.
    • controller.ts file in server/app/controllers.
    • service file in client folder
    • component file
  2. I also used the code for the tags table and could not resolve all the errors while making a post request to the newly created table, however thanks to pair programming with @junjun107 and @VirginiaWu11 I was able to fetch the data from the table to the server.
  3. To make the get request we did the following steps:
    • Created an data entry in the new table with values in id and name column.
    • In the server/app/routes/index.ts file, imported the router and created a route.
    • Made a get request at http://localhost:5001/api/{routername} and were able to see the contents of the table.
  4. Next step for me is to display the values of the table in the front end component and similarly do the post request as well. Also, planning to add jwt to the router file.

@neom500 neom500 removed the Feature: Usability Issues that make it easy for visitors to find the information they need quickly and easily label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interface: Admin Dashboard Admin dashboard page Interface: Food Seeker Milestone: Existing Feature Improvements Missing: Milestone This issue is not part of any milestone p-feature: announcements Priority - Med Needs to be in the next release Role: Database size: 2pt The lift to complete this user story 3-4hrs
Projects
Status: In Progress
3 participants