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

WP-543: Setup APCD API Client and integrate users endpoints #323

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

chandra-tacc
Copy link
Contributor

Overview

Setup APCD API Client and integrate users endpoints

Related

Changes

  • Add a APCD_Token model
  • Add token retrieval on login signal
  • create api client utils for users endpoint
  • Use the users endpoint data in the backend (via a switch on settings flag).

Testing

  1. Get the secrets.py for TACC_APCD_API_KEY.
  2. Add the following to settings_local.py:
TACC_APCD_API_HOST = 'https://<hostname>
SWITCH_TO_API = True
  1. Setup your own database (to avoid running migrations in dev.apcd)
  • Get a dump of apcd dev database.
  • import the db into your local.
  • change DATABASES in secrets.py to your local database.
  1. make build and make start
  2. Run migrations
  3. localhost:8000/admin/login (if already logged in, go to localhost:8000/logout and then log back in).
  4. Go to Admin-> view users.

UI

chandra-tacc and others added 28 commits February 27, 2024 14:26
…276)

* Initial commit - using react with APCD page

* remove visualizer

* Remove print statements

* Renamed shared-components to core-components
…276)

* Initial commit - using react with APCD page

* remove visualizer

* Remove print statements

* Renamed shared-components to core-components
…276)

* Initial commit - using react with APCD page

* remove visualizer

* Remove print statements

* Renamed shared-components to core-components
* apcd admin submissions react page version 1

* moved filter and sort functionality to react

* Added View logs modal using reactstrap modal

---------

Co-authored-by: Chandra Y <cyemparala@tacc.utexas.edu>
* feat: Add ViewUsers component

* chore: Update Docker Compose dev configuration for React

* refactor: Update ViewUsers component and related files

* refactor: Update ViewUsers component and related files

* feat: Add user action dropdown in ViewUsers component

* Filter by Status and Org now work

* URL updated w/ status and org

* URL updates to show status and/or organization

---------

Co-authored-by: Chandra Y <cyemparala@tacc.utexas.edu>
…react (#294)

* Setup vite local and template with react content

* Update Makefile
Modal windows not included
)

* List registrations: filters, pagination and view modal

* Add pending edit modal and fix org status
* first run at the react conversion

* Update list_admin_extension.html from merge feat branch

* Updated incorrect import

---------

Co-authored-by: Chandra Y <cyemparala@tacc.utexas.edu>
* feat: Add user action dropdown in ViewUsers component

* Add ViewRecordModal component and styles for user details modal

* Update ViewRecordModal component and styles for user details modal

* Update ViewRecordModal component and styles for user details modal

* Create Edit Record modal

* Add Success and Error modals

* Update EditRecordModal component and fix error handling

* Add support for fetchUtil request method and use it in EditRecordModal

* Add update user method

* Add pagination to ViewUsersTable component

* Update ViewUsersTable component with duplicate path in urls.py

* Update EditRecordModal component and fix error handling

* Remove link

---------

Co-authored-by: Chandra Y <cyemparala@tacc.utexas.edu>
Base automatically changed from feat/apcd-react-conversion to main January 17, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants