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

feat: workflow library iteration 2 #7765

Merged
merged 19 commits into from
Mar 11, 2025
Merged

Conversation

psychedelicious
Copy link
Collaborator

Summary

  • Split workflow library state into separate slice. The OG workflows slice is just for the actively loaded workflow.
  • Fix up RTKQ tag invalidation for workflow library.
  • Bump RTK to get fix for issue w/ infinite query.
  • Rework tag checkboxes to be AND filters. Update library service methods, HTTP API and frontend.

Related Issues / Discussions

n/a

QA Instructions

Try it out!

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

Has no business being in the workflow state slice.
This didn't actually do anything. Will be implementing the actual functionality that you'd _think_ this tag would do in a future change.
This brings in some fixes for the new infinite query support.
- Replace `get_counts` method with `get_tag_counts_with_filter` which gets the counts for a list of tags, filtering by a list of selected tags
- Update `get_many` logic to apply tag filtering with AND logic, to match the new `get_tag_counts_with_filter` method
- Update workflow library router
@github-actions github-actions bot added api python PRs that change python files services PRs that change app services frontend-deps PRs that change frontend dependencies frontend PRs that change frontend files labels Mar 11, 2025
@psychedelicious
Copy link
Collaborator Author

Reverted change to use AND logic for workflows across backend, HTTP API and UI. It's now OR logic. Kept the more efficient counts methods (e.g. one method/route to get counts for many tags at once, instead of a route that gets the count for only one tag at a time).

@psychedelicious psychedelicious merged commit deecb7f into main Mar 11, 2025
15 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/workflow-library-2 branch March 11, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api frontend PRs that change frontend files frontend-deps PRs that change frontend dependencies python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants