Adding fetcher for plugin to pipeline mapping.#15970
Merged
ritwiksahani merged 1 commit intosimplified-upgradesfrom Jun 10, 2025
Merged
Adding fetcher for plugin to pipeline mapping.#15970ritwiksahani merged 1 commit intosimplified-upgradesfrom
ritwiksahani merged 1 commit intosimplified-upgradesfrom
Conversation
sidhdirenge
reviewed
Jun 9, 2025
Contributor
sidhdirenge
left a comment
There was a problem hiding this comment.
Should we add a sample response from metadata api in the PR description?
...src/main/java/io/cdap/cdap/internal/app/upgrade/MetadataApplicationPluginMappingFetcher.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/cdap/cdap/internal/app/upgrade/MetadataApplicationPluginMappingFetcher.java
Show resolved
Hide resolved
cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/upgrade/ApplicationPluginMapping.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/cdap/cdap/internal/app/upgrade/MetadataApplicationPluginMappingFetcher.java
Outdated
Show resolved
Hide resolved
Contributor
Author
Added. |
* Added a metadata fetcher to fetch mapping from CDAP metadata.
Sample response from metadata API for a user plugin `Trash` and the pipeline `DataFusionQuickstart`
```
{
"sort": "io.cdap.cdap.data2.metadata.dataset.SortInfo@74a24bc1",
"offset": 0,
"limit": 2147483647,
"numCursors": 0,
"total": 1,
"results": [
{
"metadataEntity": {
"details": {
"namespace": "default",
"artifact": "trash-plugin",
"version": "1.2.0",
"type": "batchsink",
"plugin": "Trash"
},
"type": "plugin"
},
"metadata": {
"SYSTEM": {
"properties": {
"default:DataFusionQuickstart": "1"
},
"tags": []
}
}
}
],
"cursors": [],
"showHidden": false,
"entityScope": [
"USER"
]
}
```
20fb886 to
ec0c17a
Compare
sidhdirenge
approved these changes
Jun 10, 2025
ritwiksahani
added a commit
that referenced
this pull request
Jun 20, 2025
Adding fetcher for plugin to pipeline mapping.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Sample response from metadata API for a user plugin
Trashand the pipelineDataFusionQuickstart