Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

More admin functionality #20

Merged
merged 48 commits into from
Oct 20, 2023
Merged

More admin functionality #20

merged 48 commits into from
Oct 20, 2023

Conversation

edorableraf
Copy link
Contributor

Fixed return type of getRegistrations and getReportedLockers to include user info instead of user ids, and improved associated tests.

@edorableraf
Copy link
Contributor Author

Somehow there are a lot of changes, but the only new ones are in admin and admin.test. Everything else has been commited in other PRs, so those are the only two files to check.

@edorableraf edorableraf merged commit dae7f52 into main Oct 20, 2023
1 check passed
@edorableraf edorableraf deleted the admin-tools branch November 3, 2023 03:40
edorableraf added a commit that referenced this pull request Dec 8, 2023
* fixed form building values

* added search handler

* added search test

* fixed invalid query handling

* renamed test suite

* moved buildings to archive to prevent obselete tests from running

* moved alert out of validate logic to improve tests

* moved alert out of validate logic to improve tests

* move alert to page

* search handler redirect

* update tests

* added search handler

* added search test

* fixed invalid query handling

* renamed test suite

* move alert to page

* search handler redirect

* update tests

* More admin functionality (#20)

* admin interface: get locker counts, see reported lockers, download CSV of all registered lockers

* added reset database button to interface

* removed initDB functionality from admin interface (to ensure everything is non-functional for now)

* moved buildings to archive to prevent obselete tests from running

* removed demo files

* archived building table and tests, refactored from drop -> create to create -> delete to fix bugs

* removed buildings table from schema

* added ReportedLocker type, refactored admin.tsx to use it, added getReportedLockers and tests

* added clear users and registrations to improve test speed

* fixed getRegistrations to return user name and email, improved tests

* added LockerCounts admin tool

* added tests for getLockerCounts

* admin interface: get locker counts, see reported lockers, download CSV of all registered lockers

* added reset database button to interface

* removed initDB functionality from admin interface (to ensure everything is non-functional for now)

* removed demo files

* archived building table and tests, refactored from drop -> create to create -> delete to fix bugs

* removed buildings table from schema

* rebased admin-tools with main

* added clear users and registrations to improve test speed

* fixed getRegistrations to return user name and email, improved tests

* added LockerCounts admin tool

* added tests for getLockerCounts

* cleaned admin function tests

* solved merge conflicts

* moved alert out of validate logic to improve tests

* moved alert out of validate logic to improve tests

* admin interface: get locker counts, see reported lockers, download CSV of all registered lockers

* added reset database button to interface

* removed initDB functionality from admin interface (to ensure everything is non-functional for now)

* removed demo files

* archived building table and tests, refactored from drop -> create to create -> delete to fix bugs

* removed buildings table from schema

* rebased admin-tools with main

* added clear users and registrations to improve test speed

* fixed getRegistrations to return user name and email, improved tests

* added LockerCounts admin tool

* added tests for getLockerCounts

* cleaned admin function tests

* added reset database button to interface

* removed initDB functionality from admin interface (to ensure everything is non-functional for now)

* added ReportedLocker type, refactored admin.tsx to use it, added getReportedLockers and tests

* fixed getRegistrations to return user name and email, improved tests

* added search handler

* added search test

* fixed invalid query handling

* renamed test suite

* move alert to page

* search handler redirect

* update tests

* added search handler

* added search test

* renamed test suite

* search handler redirect

* update tests

* trivial updates

* update search to use post
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants