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

django-allauth and transition server state to RTK query #666

Merged

Commits on Dec 19, 2023

  1. Implement back end authentication through django-allauth and dj-rest-…

    …auth. This removes some boilerplate and provides a better platform for better growth if ever necessary.
    
    This includes new dependencies, as well as adding some alpine linux packages for building C dependencies (gcc, libc-dev, libffi-dev)
    
    add dj-rest-auth to requirements
    
    add django-allauth to requirements and configurations
    
    rename django 'sites' to 'site' to avoid conflict with django.contrib app called 'sites'
    dpgraham4401 committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    1f69073 View commit details
    Browse the repository at this point in the history
  2. move getHaztrakUser to rtk query endpoint and remove subscription in …

    …root of project (App.tsx)
    
    move login call to rtk query endpoint
    
    login endpoint and new api 'slice'
    dpgraham4401 committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    487ad7b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b13f059 View commit details
    Browse the repository at this point in the history
  4. convert authApi to separate API slice and implement update user info …

    …through RTK query mutation
    
    add get rcrainfo profile to RTK query endpoint
    
    move get rcrainfo profile to RTK query
    
    add get user profile to rtk query
    dpgraham4401 committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    986e904 View commit details
    Browse the repository at this point in the history
  5. remove old-unused API layer functions

    rename RcraProfile to RcrainfoProfile for clarity
    
    update RcraProfile serializer to allow blank/null RCRAInfo API ID and key, update with RTK query mutation
    dpgraham4401 committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    17863e0 View commit details
    Browse the repository at this point in the history
  6. Update test suite to use our new RTK query focused hooks

    implement basic tagging in RTK query endpoints for caching behavior
    
    replace useHtApi hook usage with RTK query endpoint, remove unused useHtApi
    hook
    
    remove old browser setup worker which was not doing anything
    
    reorganize the redux store
    
    remove old profile slice
    dpgraham4401 committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    22f8837 View commit details
    Browse the repository at this point in the history