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

Replacing ApiStateWrapper and ApiStatesWrapper with QueryStateWrapper #493

Merged
merged 6 commits into from
Dec 22, 2023

Conversation

jorgenherje
Copy link
Collaborator

@jorgenherje jorgenherje commented Dec 4, 2023

Replace state wrappers ApiStateWrapper and ApiStatesWrapper with a single renamed wrapper handling both single query and list of queries as prop.

For list of queries, it is possible to configure when to display error state:
1, When all queries has error
2. When at least one query has error.


Closes: #417
Closes: #447

Replace state wrappers with a single renamed wrapper which handles both single query and list of queries as prop.

For list of queries, it is possible to configure when to display error state: all queries has error, or at least one query has error.
@jorgenherje jorgenherje self-assigned this Dec 4, 2023
@jorgenherje jorgenherje added the enhancement New feature or request label Dec 4, 2023
- Add error if every vector list query fails
- Allow update of vectorSelectorData even if queries fail, only await fetching state.
Copy link
Collaborator

@rubenthoms rubenthoms left a comment

Choose a reason for hiding this comment

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

Some suggestions, otherwise LGTM.

@jorgenherje jorgenherje merged commit 2dd6157 into equinor:main Dec 22, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants