Skip to content

Mtc merge 2021 tweaks#686

Merged
binh-dam-ibigroup merged 11 commits intodevfrom
mtc-merge-2021-tweaks
Jan 14, 2022
Merged

Mtc merge 2021 tweaks#686
binh-dam-ibigroup merged 11 commits intodevfrom
mtc-merge-2021-tweaks

Conversation

@landonreed
Copy link
Copy Markdown
Contributor

@landonreed landonreed commented Jun 11, 2021

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JSDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Contains UI tweaks that correspond to changes in ibi-group/datatools-server#376

Comment on lines +203 to +205
<ul>
{failureReasons.map((r, i) => <li key={i}>{r}</li>)}
</ul>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR: a similar (scrolling) list could be added for successful merges.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I follow. What would this list show?

Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

@binh-dam-ibigroup binh-dam-ibigroup removed their assignment Jun 11, 2021
// Do nothing or show merged feed modal? Feed version is be created
details.push('Remapped ID count: ' + result.remappedReferences)
if (Object.keys(result.remappedIds).length > 0) {
details.push([messages('remappedIdCount'), remappedReferences].join(SEPARATOR))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be a template string used in the english.yml file instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 1c12390.

}
details.push('Remapped IDs: ' + remappedIdStrings.join(', '))
details.push(
[messages('remappedIds'), remappedIdStrings.join(', ')].join(SEPARATOR)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be a template string used in the english.yml file instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved in 1c12390 with a proper list.

}
details.push('Skipped records: ' + skippedRecordsStrings.join(', '))
details.push(
[messages('skipped'), skippedRecordsStrings.join(', ')].join(SEPARATOR)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be a template string used in the english.yml file instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved in 1c12390 with a proper list.

details.push('ID conflicts: ' + result.idConflicts.join(', '))
if (idConflicts.length > 0) {
details.push(
[messages('idConflicts'), idConflicts.join(', ')].join(SEPARATOR)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be a template string used in the english.yml file instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved in 1c12390 with a proper list.

i18n/english.yml Outdated
title: Log in
MergeFeedsResult:
body:
failure: Merge failed with $errorCount errors.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inconsistent with the way template strings are done in components.FeedTransformationDescriptions.DeleteRecordsTransformation. Can we agree upon a consistent way of doing template strings?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 1c12390.

Copy link
Copy Markdown
Contributor

@evansiroky evansiroky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use more template strings in certain places, and also it'd be nice to have an agreed-upon way of doing template strings.

@binh-dam-ibigroup binh-dam-ibigroup dismissed evansiroky’s stale review November 17, 2021 15:23

Comments from @evansiroky were addressed.

@binh-dam-ibigroup binh-dam-ibigroup removed their assignment Nov 17, 2021
Copy link
Copy Markdown
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My knowledge of our MTC additions is not so strong, but this all looks reasonable given the context

@miles-grant-ibigroup
Copy link
Copy Markdown
Contributor

Assigning back to @binh-dam-ibigroup to coordinate merge with the backend

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.

4 participants