diff --git a/docs/Sprint-Review/sprint-81-summary.md b/docs/Sprint-Review/sprint-81-summary.md new file mode 100644 index 000000000..439a9f9c7 --- /dev/null +++ b/docs/Sprint-Review/sprint-81-summary.md @@ -0,0 +1,55 @@ + +# Sprint 81 Summary + +08/30/23 - 09/12/23 + +Velocity: Dev (13) + +## Sprint Goal +* Continue parsing engine development for TANF Sections (02 and 04) and close out subsmission history and metadata workflows (1613/12/10). +* UX to continue regional staff and in-app messaging research, errors audit approach, and bridge onboarding to >90% of total users +* DevOps to investigate singular ClamAV (2429), resolve utlity images for CircleCI and evaluate CI/CD pipeline. + + +## Tickets +### Completed/Merged +* [#2626 improve parsing logging](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2626) +* [#1109 TANF (02) Parsing and Validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1109) +* [#2116 Container Registry Creation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2116) + +### Ready to Merge +* N/A + +### Submitted (QASP Review, OCIO Review) +* [#1613 As a developer, I need parsed file meta data (TANF Section 1)](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/board) + +### Closed (not merged) +* N/A + +## Moved to Next Sprint (Blocked, Raft Review, In Progress, Current Sprint Backlog) +### In Progress + +* [#2429 Singular ClamAV scanner](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2429) +* [#1111 TANF (04) Parsing and Validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1111) +* [#2664 (bug) file extension](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2664) +* [#2695 space-filled values update (TANF (01))](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2695) +* [#2411 As system admin, I awnt to view metadata on parsed datafiles](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2411) +* [#2536 [spike] Cat 4 validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2536) + + +### Blocked +* N/A + + +### Raft Review +* [#1610 As a user, I need information about the acceptance of my data and a link for the error report](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1610) +* [#1612 Detailed case level metadata](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1612) + + +### Demo +* Internal: + * 1109 - TANF Sec (02) + * 2626 - Parsing logging enhancements + + + diff --git a/docs/Technical-Documentation/CloudFoundry-DB-Connection.md b/docs/Technical-Documentation/CloudFoundry-DB-Connection.md index 3a72e28e7..c7ca0efe8 100644 --- a/docs/Technical-Documentation/CloudFoundry-DB-Connection.md +++ b/docs/Technical-Documentation/CloudFoundry-DB-Connection.md @@ -23,3 +23,36 @@ From [this github](https://github.com/cloud-gov/cf-service-connect) which has so > `cf connect-to-service tdp-backend- tdp-db-dev` + +# How to DROP existing DB and Recreate a fresh DB + +### Connecting to DB service +First step is to connect to the instance DB (see above). + +#### Optional: DB backup +Before deleting the DB and recreating a fresh DB, you might want to create a backup from the existing data in case you decide to revert the DB changes back. + +For creating a DB backup, please see: `/tdpservice/scheduling/BACKUP_README.md` + +#### Drop and Recreate + +e.g: +>`cf connect-to-service tdp-backend-qasp tdp-db-dev` + +After connection to the DB is made (the step above will make a psql connection), then the following Postgres commands have to run: + +1. List the DBs: `\l` +2. Potgres does not _DROP_ a database when you are connected to the same DB. As such, you will have to connect to a different DB using command: +>`\c {a_database}` + + A good candiadate is: +>`\c postgres` +3. find the associated DB name with instance. E.g: `tdp_db_dev_qasp` +4. use the following command to delete the DB: +>`DROP DATABASE {DB_NAME}` +5. use the following command to create the DB: +>`CREATE DATABASE {DB_NAME}` + +After the DB is created, since the database is cinoketely empty, we will need to redeploy the app again to create tables (or alternatively we can restore a good backup), and then we should run populate stt command to add STT data to the empty DB + +>`./manage.py populatestts`