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

[TECH DEBT] Continue indexing sqlite fields #302

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ericpromislow
Copy link
Contributor

@ericpromislow ericpromislow commented Oct 18, 2024

Related Issue: #46642

Carry over tasks from #271 :

Regarding TransformEventObject in pkg/resources/virtual/events/events.go:

However, there's been reports that this may not be fully working as expected: rancher/dashboard#12262 - so for that reason, we can keep this as-is and file a follow-up issue to complete the work.

My thoughts here is that given a loop of converters, we should run them in increasing order of generality, running the common one last. This might turn out to be unnecessary, but I think this way gives us the most flexibility going forward.

Misc changes:
- Use the builtin Event class, not events.k8s.io (by looking at the dashboard client code)
- Specify full path to the management.cattle.io fields.
- Map `Event.type` to `Event._type` for indexing.

Use a compound transform-func to first check for a "signal",
and then to run all the relevant transformers until either
one fails or the list is exhausted.

- Includes moving the fakeSummaryCache type into a common area.

Use a simpler way of running transforms.
@ericpromislow ericpromislow requested a review from a team as a code owner October 18, 2024 18:39
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.

1 participant