-
Notifications
You must be signed in to change notification settings - Fork 14
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
[NRPTI-1045][FEATURE] - issuing agency update #1120
Conversation
…update values from that list with value from a text box.
…e the object which will be sent to the api for updating the agencyList. Also worth noting the alerts are being used here for console debugging. My local settings are preventing logging, when I find the reason I will update readme to document process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback
- Love the new JSDoc Headers, major improvement in the codebase from before.
- nice work getting the updated changes between the two frontends from the existing implementation
We should use a constants object with all the agency codes in it, currently if I were to update the 'AGENCY_FNLR_NRO" alone, I would have to change that value 20 times across 11 files.
If we use a constants file for agency codes we can prevent issues that can occur from using a hard coded string in several places:
- Typos
- Reduce code complexity
- Make maintenance faster and easier
- Reduce potential bugs from future feature updates and the above
Currently there is a bug in the new features!
- If I change the name of an agency it runs successfully ✅
- If I change the name of an agency a
second
time on the same page, no network request is sent, a false confirmation message appears, values do not change. - If I enter an updated agency name,
do not
select an agency I want to update, I still receive a false positive from both the API and the frontend (Or just the frontend, if this is a subsequent request on the same page)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Pull Request Standards
HOTFIX
,FEATURE
,etc
][NRPTI-###]
Description
This PR includes the following proposed change(s):