Skip to content

Commit

Permalink
cypress tests working. attempting to test on dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshraze committed Feb 3, 2025
1 parent c7de12b commit d9c4d2d
Show file tree
Hide file tree
Showing 35 changed files with 12,627 additions and 13,383 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/dev-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,35 @@ jobs:
echo OWNER=${{ secrets.OWNER }} >> frontend/.env
echo REPO=${{ secrets.REPO }} >> frontend/.env
# - name: Cache node modules
# uses: actions/cache@v2
# with:
# path: frontend/node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
# - name: Cache node modules
# uses: actions/cache@v2
# with:
# path: frontend/node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-

# - name: Cache Next.js build
# uses: actions/cache@v2
# with:
# path: frontend/build/cache
# key: ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/.next/cache') }}
# restore-keys: |
# ${{ runner.os }}-next-
# ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}
# - name: Cache Next.js build
# uses: actions/cache@v2
# with:
# path: frontend/build/cache
# key: ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/.next/cache') }}
# restore-keys: |
# ${{ runner.os }}-next-
# ${{ runner.os }}-next-${{ hashFiles('**/package-lock.json') }}

- name: move into frontend --> npm install, build, and test
run: |
cd frontend/
npm install
npm run build
npm run test --if-present
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start
browser: chrome

- name: Move directories into build/standalone to reduce app load
run: |
Expand Down
66 changes: 33 additions & 33 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@

1. FixedData cases' queries updated to correctly work with updated schemas
2. New tables/cases added:
1. `personnelrole`
2. `sitespecificvalidations`
3. `roles`
4. `measurementssummary`
5. `viewfulltable`
1. `personnelrole`
2. `sitespecificvalidations`
3. `roles`
4. `measurementssummary`
5. `viewfulltable`

###### POST

Expand All @@ -142,18 +142,18 @@

1. Postvalidation summary statistics calculation endpoint
2. Statistics queries:
1. `number of records by quadrat`
2. `all stem records by quadrat (count only)`
3. `live stem records by quadrat (count only)`
4. `tree records by quadrat (count only)`
5. `number of dead or missing stems by census`
6. `trees outside of plot limits`
7. `stems with largest DBH/HOM measurements by species`
8. `all trees that were recorded in last census that are NOT in current census`
9. `number of new stems per quadrat per census`
10. `quadrats with most and least new stems per census`
11. `number of dead stems per quadrat per census`
12. `number of dead stems per species per census`
1. `number of records by quadrat`
2. `all stem records by quadrat (count only)`
3. `live stem records by quadrat (count only)`
4. `tree records by quadrat (count only)`
5. `number of dead or missing stems by census`
6. `trees outside of plot limits`
7. `stems with largest DBH/HOM measurements by species`
8. `all trees that were recorded in last census that are NOT in current census`
9. `number of new stems per quadrat per census`
10. `quadrats with most and least new stems per census`
11. `number of dead stems per quadrat per census`
12. `number of dead stems per species per census`

#### frontend/app/api/refreshviews/[view]/[schema]/route.ts

Expand Down Expand Up @@ -220,7 +220,7 @@
3. customized cell and edit cell rendering added
4. some exceptions exist -- for instances where specific additional handling is needed, column states are directly
defined in the datagrid components themselves.
1. `alltaxonomiesview` -- specieslimits column customized addition
1. `alltaxonomiesview` -- specieslimits column customized addition

#### GitHub Feedback Modal

Expand Down Expand Up @@ -250,18 +250,18 @@
1. The DataGridCommons generic datagrid instance has been replaced by the IsolatedDataGridCommons instance, which
isolates as much information as possible to the generic instance rather than the existing DataGridCommons, which
requires parameter drilling of all MUI X DataGrid parameters. Current datagrids using this new implementation are:
- `alltaxonomiesview`
- `attributes`
- `personnel`
- `quadratpersonnel`
- `quadrats`
- `roles`
- `stemtaxonomiesview`
- `alltaxonomiesview`
- `attributes`
- `personnel`
- `quadratpersonnel`
- `quadrats`
- `roles`
- `stemtaxonomiesview`
2. found that attempting to use typescript runtime utilities to create "default" initial states for each RDS type was
causing cascading failures. Due to the way that runtime utility functions work, no data was actually reaching the
datagrids importing those initial states
1. replaced with manual definition of initial states -- planning on centralizing this to another place, similar to
the `datagridcolumns.tsx` file
1. replaced with manual definition of initial states -- planning on centralizing this to another place, similar to
the `datagridcolumns.tsx` file
3. `measurementssummaryview` datagrid instance added as a replacement to the previously defined summary page

#### Re-Entry Data Modal
Expand Down Expand Up @@ -312,12 +312,12 @@
### SQL Updates

1. Schema has been been updated -- new tables added:
1. `roles` - outlines user roles
2. `specieslimits` - allows setting min/max bounds on measurements
3. `specimens` - recording specimen data (added on request by ForestGEO)
4. `unifiedchangelog` - partitioned table that tracks all changes to all tables in schema. All tables have triggers
that automatically update the `unifiedchangelog` on every change
5. `sitespecificvalidations` - for specific validations applicable only to the host site
1. `roles` - outlines user roles
2. `specieslimits` - allows setting min/max bounds on measurements
3. `specimens` - recording specimen data (added on request by ForestGEO)
4. `unifiedchangelog` - partitioned table that tracks all changes to all tables in schema. All tables have triggers
that automatically update the `unifiedchangelog` on every change
5. `sitespecificvalidations` - for specific validations applicable only to the host site
2. validation stored procedures have been deprecated and removed, replaced with `validationprocedures` and
`sitespecificvalidations` tables
3. migration script set has been completed and tested
Expand Down
84 changes: 0 additions & 84 deletions frontend/__tests__/dashboard.test.tsx

This file was deleted.

59 changes: 0 additions & 59 deletions frontend/__tests__/login.test.tsx

This file was deleted.

Loading

0 comments on commit d9c4d2d

Please sign in to comment.