-
Notifications
You must be signed in to change notification settings - Fork 20
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
Remote signer Implementation #640
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Create HaztrakOrg model and fix MinLengthValidtor for HaztrakSite * add admin field to HaztrakOrg which points to HaztrakUser
* add org to haztrak site model * add Faker package for creating fake fixtures and random names to avoid integrity errors, adjust fixures to use new HaztrakOrg * new organization service module * refactor site search endpoint so business logic is in our services module * move json fixtures from resources to fixtures, use faker pytest fixture * alter siteType for consistency, add custom faker provider SiteIDProvider for generating EPA site IDs, allow RcraSiteSearchView to use case capitolized (or not) siteType parameters * use faker in more of our model factories * finish using faker to mock random data in our test suite * reorg so rcraprofile is connected to haztrakprofile instead of user * clean up __init__ function for RcrainfoService * move RcraProfile model test suite to core django app * add test suite for HaztrakOrg property fields and set ordering to HaztrakOrg.name * minor meta changes and squash migrations * update triggers and contraints for running tests, release-drafter, and dependency review * remove faker from RcraPhone factory for now * fixture integraity error fixes
…equest, auth error, etc)
…lass based on the user calling adjust __init__ function of manifest service to use new RcrainfoService constructor remove redundant class for testing RcrainfoService modify constructor to use api ID and Key if they are passed in
…vice level function for getting or creating a RcraProfile model RcraApiBtn uses the org information (if rcrainfoIntegrated is true)
add steps to create a haztrak profile (when creating a RcraProfile) if it's not present and connecting the new RcraProfile to the user account (via the HaztrakProfile)
…le (with SitePermissions subcomponent) and RcraProfile
github-actions
bot
added
CI/CD
Requires modiciations to the continuous integration pipeline(s)
client
Related to front end workings (React/Redux)
database
changes that require modification to the database schema
dependencies
project dependency problems or modifications
documentation
Improvements or additions to documentation
server
Related to backend workings (Django/Rest API)
test
Unit tests are, or need to be, included
labels
Nov 16, 2023
closes #635 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CI/CD
Requires modiciations to the continuous integration pipeline(s)
client
Related to front end workings (React/Redux)
database
changes that require modification to the database schema
dependencies
project dependency problems or modifications
documentation
Improvements or additions to documentation
server
Related to backend workings (Django/Rest API)
test
Unit tests are, or need to be, included
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a big step in the haztrak application. This implements EPA's Remote Signer Policy.
In order to do this, we also implement something else. Organizations.
Now all users are created within the context of an
HaztrakOrg
, the organization has (currently just one) admin. If the admin has set up Haztrak with their RCRAInfo API credentials, users in the admin's organization can use their API credentials to interact with the RCRAInfo web services. Otherwise.Future implementation possibilities.
Generally speaking this PR does a number of other things as well.
HaztrakProfile
instead of directly connected to the user (since it's not a necessary thing to have anymore (non RCRAInfo registered users do not need to have a RcrainfoProfile)RcrainfoService
with the appropriate API credentials depending on the usersIssue ticket number and link
Checklist