Filter and show only those providers that have valid event metadata on provider selection #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Old workflow
Fetch all entitled provider metadata for org - L1
After user selects the provider metadata they want to subscribe to from L1 - PM
Fetch all entitled provider for org filtered by PM -L2 ( some provider metadata may not have provider, some providers may not have valid event metadata )
This resulted in not having any providers to choose from for certain provider metadata, which is a bad experience.
New workflow:
Fetch all entitled provider metadata for org - L1
Fetch all entitled provider for org - L2
Filter providers that do not have valid event metadata and create map of provider metadata to providers list - M1
Filter provider metadata from L1 that do not have any valid providers in M1 - L3
user selects the provider metadata they want to subscribe to from L3
for the selected provider metadata there is guaranteed to be valid providers and associated event metadata
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: