-
Notifications
You must be signed in to change notification settings - Fork 663
CONSOLE-4806: Remove static extensions from knative-plugin #15641
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
Open
Leo6Leo
wants to merge
14
commits into
openshift:main
Choose a base branch
from
Leo6Leo:leo/ocpbugs/4806/Remove-static-extensions-from-knative-plugin/main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8f5dc89
feat: Refactor Knative plugin: replace plugin.tsx with plugin.ts, upd…
Leo6Leo abbb2b4
Merge remote-tracking branch 'upstream' into leo/ocpbugs/4806/Remove-…
Leo6Leo 18fba13
CONSOLE-4806: Support CodeRef for topology resources property
Leo6Leo 0dbd7a8
Apply suggestions from code review
Leo6Leo d16dafe
fix: fix the review comments from @logonoff
Leo6Leo 395122d
OCPBUGS-4806: Convert knative topology resources from CodeRef to stat…
Leo6Leo d28fbd5
Merge remote-tracking branch 'upstream' into leo/ocpbugs/4806/Remove-…
Leo6Leo dcf0f44
Merge remote-tracking branch 'upstream' into leo/ocpbugs/4806/Remove-…
Leo6Leo 9a51df4
OCPBUGS-4806: Remove static topology data model factory extensions
Leo6Leo 5b83c8a
Merge remote-tracking branch 'upstream' into leo/ocpbugs/4806/Remove-…
Leo6Leo 96cb737
Apply suggestions from code review
Leo6Leo e733bb8
Update frontend/packages/knative-plugin/src/utils/get-knative-resourc…
Leo6Leo d204174
OCPBUGS-4806: Refactor topology data model to use useResolvedExtensions
Leo6Leo 6ec040b
fix: Refactor DataModelExtension to streamline resource conversion
Leo6Leo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| // See console-extensions.json instead | ||
| export default []; |
This file was deleted.
Oops, something went wrong.
91 changes: 0 additions & 91 deletions
91
frontend/packages/knative-plugin/src/topology/topology-plugin.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 4 additions & 27 deletions
31
frontend/packages/topology/src/components/dropdowns/ApplicationDropdown.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resources expects a
WatchK8sResourcesGenericand not a codeRef.The challenge of this ticket is that
getKnativeEventingResourcesis dynamic, so we need to modifyconsole.topology/data/factoryto also allow codeRefs.We discussed in the dynamic plugin sync that this coderef should be typed with
resources:
WatchK8sResourcesGeneric | CodeRef<() => Promise<WatchK8sResourcesGeneric>>.The promise is needed as plugins may want to do some fetching in order to determine which k8s resources should be wtached.
This will require changes to any code which consumes the
TopologyDataModelFactoryextension. I suggest possibly writing auseTopologyDataModelFactoryhook in the topology package to allow resolve the codeRefsThis API change is already approved by @spadgett so you will get
plugin-api-approvedwith this change