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

issue #1272 - simplify searchParameter configuration #1608

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Conversation

lmsurpre
Copy link
Member

Initially we made each searchParameter its own object so that we could
add additional properties for issue #1351.
However, now we don't think that any additional fields are needed and so
we can simplify the config to be a simple map of SearchParameter code
-> SearchParameter.url

This format will give us the flexibility of overriding a SearchParameter
code for a given resource type for a given deploy. However, currently
the code from the config is not used...it will only use the url and it
will auto-resolve any conflicting codes.

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

@lmsurpre lmsurpre requested review from prb112 and tbieste October 20, 2020 15:51
Copy link
Contributor

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

LGTM, per our conversation this looks right

@tbieste
Copy link
Contributor

tbieste commented Oct 20, 2020

However, currently the code from the config is not used...it will only use the url and it
will auto-resolve any conflicting codes.

I wonder if for clarity/consistency if the "code" was required to match the "code" of the SearchParameter pointed to by the URL. Perhaps we should add that in a follow-on PR.

@lmsurpre
Copy link
Member Author

I wonder if for clarity/consistency if the "code" was required to match the "code" of the SearchParameter pointed to by the URL. Perhaps we should add that in a follow-on PR.

Good thought. Eventually I don't want to require them to match because we want to enable overriding the one in the SearchParameter with the one in the config. However, since thats a bigger lift, I think its worth seeing if there's an easy way to add the validation check you describe to this PR. Looking...

Initially we made each searchParameter its own object so that we could
add additional properties for issue #1351.
However, now we don't think that any additional fields are needed and so
we can simplify the config to be a simple map of SearchParameter  code
-> SearchParameter.url

This format will give us the flexibility of overriding a SearchParameter
code for a given resource type for a given deploy. However, currently
the code from the config is not used...it will only use the url and it
will auto-resolve any conflicting codes.

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
@lmsurpre lmsurpre merged commit 7097687 into master Oct 20, 2020
@lmsurpre lmsurpre deleted the issue-1272 branch October 20, 2020 17:42
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.

3 participants