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
Dpo3 dpkrt 754 #548
Dpo3 dpkrt 754 #548
Conversation
natashaJ-NZP
commented
Jul 3, 2023
- On SubjectListItem.tsx, I added an extra table column and inserted the collection ID prop to populate the values for each Subject List Item (line 69-72).
…identifier fix: numerical identifiers converted to strings
- ingestData.ts commented out old code and placed new validation code beneath. - EdanCollection.ts added a new function called checkEdanIdentifier - Just added comments various functions across other files outside of ingestData.ts and EdanCollection.ts
* Validation check for identifiers - ingestData.ts commented out old code and placed new validation code beneath. - EdanCollection.ts added a new function called checkEdanIdentifier - Just added comments various functions across other files outside of ingestData.ts and EdanCollection.ts * Resolving pull request 'flags' from Eric M.'s code review
…d added directions on the Upload page only. WIP: will be fixing the blue color to only apply on the upload page.
…oad page. (WIP) adding tooltips to each field component in the Ingestion process; however, d/t the complexity of the application, I will require extensive tracing and logic building to incorporate the Tooltip component inside each field component. Will require more time than expected.
* (wip) Validation check for identifiers - ingestData.ts commented out old code and placed new validation code beneath. - EdanCollection.ts added a new function called checkEdanIdentifier - Just added comments various functions across other files outside of ingestData.ts and EdanCollection.ts * Resolving pull request 'flags' from Eric M.'s code review * Changed the background color of the ingest/discard buttons to blue and added directions on the Upload page only. WIP: will be fixing the blue color to only apply on the upload page. * test commit - to see if the changes applied update in real time. * Added file format text to the bottom of the upload section on the upload page. (WIP) adding tooltips to each field component in the Ingestion process; however, d/t the complexity of the application, I will require extensive tracing and logic building to incorporate the Tooltip component inside each field component. Will require more time than expected.
…ckrat into DPO3DPKRT-747
…etails.tsx and UnitDetails.tsx
if (!edanId) | ||
return { success: false, error: `Invalid EDAN Record ID: ${identifier.identifier}}` }; | ||
|
||
if (regexEdan.test(edanId)) |
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.
I'm noticing the newly added ICollection.checkEdanIdentifier(). Why isn't that being used here, instead of regexEdan?
@@ -14,6 +15,9 @@ export default async function searchIngestionSubjects(_: Parent, args: QuerySear | |||
|
|||
const results: DBAPI.SubjectUnitIdentifier[] = []; | |||
const resultSet: Set<string> = new Set<string>(); | |||
console.log(`db: ${JSON.stringify(resultsDB)}`); |
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.
While previously involved in the project, my suggestion was to not leave console logging in our committed code. For server-side logging, use the logger. For client-side logging, comment out console statements before committing. Perhaps guidance has changed here, but I would still strongly suggest using server logging instead of console.log.
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.
Please address linting error. Perhaps consider using yarn lint
before submitting code to ensure that all lint errors are identified.
cac0d06
to
b05e532
Compare
008e5d6
to
aa7535c
Compare