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

Add global noResults configuration option. #709

Merged
merged 3 commits into from
Apr 21, 2020
Merged

Conversation

tmeyer2115
Copy link
Collaborator

This new option can be set in the top-level Answers.init configuration. It can
be used by both VerticalResults and the MapComponent. Both of these components
have logic that will favor an individual noResults config to the one in
globalStorage. Additionally, both components will apply the same sane defaults
to any noResults attributes not specified. A change was also made to ensure
that the VerticalResults component passes along its noResults config to any
child MapComponent, to ensure consistency.

Note that Rose requested the displayAllResults default be false for the
MapComponent

TEST=manual

Ensured correct behavior in all the following situations:

VerticalResults with included MapComponent

  • Specified noResults config for VerticalResults.
  • Specified noResults config at global level.
  • Specified noResults config at both levels.
  • Specified noResults config at neither level.

VerticalResults and separate MapComponent

  • Specified noResults config for both components.
  • Specified noResults config at global level.
  • Specified noResults config at global and component levels.
  • Specified noResults config at neither levels.

This new option can be set in the top-level Answers.init configuration. It can
be used by both VerticalResults and the MapComponent. Both of these components
have logic that will favor an individual noResults config to the one in
globalStorage. Additionally, both components will apply the same sane defaults
to any noResults attributes not specified. A change was also made to ensure
that the VerticalResults component passes along its noResults config to any
child MapComponent, to ensure consistency.

Note that Rose requested the displayAllResults default be false for the
MapComponent

TEST=manual

Ensured correct behavior in all the following situations:

VerticalResults with included MapComponent

- Specified noResults config for VerticalResults.
- Specified noResults config at global level.
- Specified noResults config at both levels.
- Specified noResults config at neither level.

VerticalResults and separate MapComponent

- Specified noResults config for both components.
- Specified noResults config at global level.
- Specified noResults config at global and component levels.
- Specified noResults config at neither levels.
Copy link
Contributor

@alexisgrow alexisgrow left a comment

Choose a reason for hiding this comment

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

LGTM!

@tmeyer2115 tmeyer2115 merged commit 1e6728c into v0.13.3 Apr 21, 2020
@tmeyer2115 tmeyer2115 deleted the no-results-config branch April 21, 2020 18:08
tmeyer2115 added a commit that referenced this pull request Apr 24, 2020
This new option can be set in the top-level Answers.init configuration. It can
be used by both VerticalResults and the MapComponent. Both of these components
have logic that will favor an individual noResults config to the one in
globalStorage. Additionally, both components will apply the same sane defaults
to any noResults attributes not specified. A change was also made to ensure
that the VerticalResults component passes along its noResults config to any
child MapComponent, to ensure consistency.

Note that Rose requested the displayAllResults default be false for the
MapComponent

TEST=manual

Ensured correct behavior in all the following situations:

VerticalResults with included MapComponent

- Specified noResults config for VerticalResults.
- Specified noResults config at global level.
- Specified noResults config at both levels.
- Specified noResults config at neither level.

VerticalResults and separate MapComponent

- Specified noResults config for both components.
- Specified noResults config at global level.
- Specified noResults config at global and component levels.
- Specified noResults config at neither levels.
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.

None yet

2 participants