Repository navigation
Commit 3a8d12f
feat: hide deprecated AppKit plugins from apps init picker (#6834)
## Summary
AppKit now emits `deprecated: true` on plugin entries in
`appkit.plugins.json` ([AppKit PR
#596](databricks/appkit#596)). This makes
`databricks apps init` skip deprecated plugins in the "Select features"
picker.
Two changes in `libs/apps/manifest/manifest.go`:
- Add `Deprecated bool` to the `Plugin` struct.
- Exclude deprecated plugins in `GetSelectablePlugins()`. A deprecated
plugin is then neither selectable nor mandatory, so it drops out of the
picker entirely.
## Testing
- Added `TestGetSelectablePluginsExcludesDeprecated` in
`libs/apps/manifest`.
- `go build ./...`
- `go test ./libs/apps/... ./cmd/apps/...`
This pull request and its description were written by Isaac.
---------
Co-authored-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
Co-authored-by: Isaac <no-reply@databricks.com>1 parent db4f0ca commit 3a8d12f
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | | - | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
172 | 190 | | |
173 | 191 | | |
174 | 192 | | |
| |||
0 commit comments