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

Dpo3 dpkrt 754 #548

Closed
wants to merge 17 commits into from
Closed

Dpo3 dpkrt 754 #548

wants to merge 17 commits into from

Conversation

natashaJ-NZP
Copy link
Collaborator

  • 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).

EMaslowskiQ and others added 15 commits April 11, 2023 10:53
…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.
if (!edanId)
return { success: false, error: `Invalid EDAN Record ID: ${identifier.identifier}}` };

if (regexEdan.test(edanId))
Copy link
Collaborator

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)}`);
Copy link
Collaborator

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.

Copy link
Collaborator

@jahjedtieson jahjedtieson left a 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.

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.

None yet

3 participants