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

Fix: Metadata Fields retrieval for Shared Groups and Shared Projects [DFCT0010073] #630

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

ericenns
Copy link
Member

@ericenns ericenns commented Jun 5, 2024

What does this PR do and why?

Describe in detail what your merge request does and why.

When launching a Workflow Execution from the Group Samples page when the Samples come from a shared Project or a shared Group. The metadata fields dropdown would not populate. Also when toggling the metadata on the same Group Samples page no metadata would show from the Samples even though they contained it.

This PR adds in a new method metadata_fields to Namespace model with override in Group model. The override in the Group model will query the Shared Groups and Shared Projects to include their metadata fields in the result of the method.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Create a new Group
  2. Share an existing Group with Samples that have metadata to the new Group
  3. Navigate to the new Group Samples page
  4. Verify that metadata is displaying when metadata is toggled.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

…group model and update metadata concern to use new method
@ericenns ericenns requested a review from deepsidhu85 June 5, 2024 19:14
@ericenns ericenns self-assigned this Jun 5, 2024
@ericenns ericenns requested a review from joshsadam June 5, 2024 19:20
@ericenns ericenns added the bug Something isn't working label Jun 5, 2024
joshsadam
joshsadam previously approved these changes Jun 5, 2024
Copy link
Contributor

@joshsadam joshsadam left a comment

Choose a reason for hiding this comment

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

Works as advertised.

deepsidhu85
deepsidhu85 previously approved these changes Jun 5, 2024
Copy link
Contributor

@deepsidhu85 deepsidhu85 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@ericenns ericenns force-pushed the fix/metadata-fields_for_namespace-method branch from a23f0ce to 6e42bda Compare June 5, 2024 19:48
deepsidhu85
deepsidhu85 previously approved these changes Jun 5, 2024
@ericenns ericenns force-pushed the fix/metadata-fields_for_namespace-method branch from 6e42bda to a2c2e02 Compare June 5, 2024 19:58
@ericenns ericenns force-pushed the fix/metadata-fields_for_namespace-method branch from a2c2e02 to e7c9566 Compare June 5, 2024 20:01
Copy link

github-actions bot commented Jun 5, 2024

Simplecov Report

Covered Threshold
92.3% 90%

Copy link
Contributor

@deepsidhu85 deepsidhu85 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@deepsidhu85 deepsidhu85 merged commit fbb93d0 into main Jun 5, 2024
3 checks passed
@deepsidhu85 deepsidhu85 deleted the fix/metadata-fields_for_namespace-method branch June 5, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants