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

MC-9841 Update UI to support certain actions that can run async in Mauro #562

Merged
merged 4 commits into from
Aug 3, 2022

Conversation

pjmonks
Copy link
Contributor

@pjmonks pjmonks commented Jun 17, 2022

Details

  • Update fork/branch/version of models to allow asynchronous creation
  • Update versioned folders to support async fork/branch/version
  • Updates to Import Models page
  • Add async option to Export Models page
  • Update model detail pages to support exports. Use a dialog to select export options now.
  • Prevent export models from mixing domain types in model selection
  • Use mdm-download-links component for Export Models page
  • Update infrastructure code to get correct MDM resource easier
  • Refactor other related code for type correctness

All async actions will display an info toast, if successful, stating the background job has started.

Screenshots

Branching/versioning/forking:

image

Export model (from model detail - new dialog):

image

Export models (multiple):

image

Import models - parameters pulled directly from importer plugin:

image

Copy link
Contributor

@jamesrwelch jamesrwelch left a comment

Choose a reason for hiding this comment

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

This seems to work nicely. One minor request - after an export the download link (in the admin 'jobs' section) is not very user-friendly - could we have a 'Download file' button or something?

@pjmonks
Copy link
Contributor Author

pjmonks commented Jul 20, 2022

Updated as best I can by rendering the async job messages as HTML:

image

This does produce a useable hyperlink which triggers a download. But we can't have a dedicated button for this because the async job details returned from Mauro do not provide any further context - such as the domain export ID that it is linked to, or additional context extracted from the message.

@pjmonks pjmonks requested a review from jamesrwelch July 20, 2022 13:33
* Update fork/branch/version of models to allow asynchronous creation
* Update versioned folders to support async fork/branch/version
* Updates to Import Models page
* Add async option to Export Models page
* Update model detail pages to support exports. Use a dialog to select export options now.
* Prevent export models from mixing domain types in model selection
* Use mdm-download-links component for Export Models page
* Update infrastructure code to get correct MDM resource easier
* Refactor other related code for type correctness
@pjmonks pjmonks dismissed jamesrwelch’s stale review August 3, 2022 08:14

Attempted to address some of the feedback, need it re-reviewed.

@jamesrwelch
Copy link
Contributor

jamesrwelch commented Aug 3, 2022

@pjmonks Minor question / comment - when I download a file using the new link, it opens a new blank browser tab at the same time as downloading. Is that to do with my browser?
Otherwise I'm happy with this.

@jamesrwelch jamesrwelch merged commit 4f698ac into develop Aug 3, 2022
@jamesrwelch jamesrwelch deleted the feature/mc-9841 branch August 3, 2022 13:24
@pjmonks pjmonks added this to the 7.2.0 milestone Aug 3, 2022
@pjmonks pjmonks self-assigned this Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

None yet

2 participants