Skip to content

Commit

Permalink
chore: update analytics-provider-segment wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Kashish Mittal <kmittal@redhat.com>
  • Loading branch information
04kash committed Nov 15, 2024
1 parent a23180a commit f63a879
Show file tree
Hide file tree
Showing 13 changed files with 5,172 additions and 5,370 deletions.
2 changes: 1 addition & 1 deletion .ibm/pipelines/value_files/values_showcase-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ global:
disabled: true
- package: ./dynamic-plugins/dist/backstage-community-plugin-rbac
disabled: false
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-analytics-provider-segment
- package: ./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
disabled: true

# -- Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml)
Expand Down
2 changes: 1 addition & 1 deletion app-config.dynamic-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ dynamicPlugins:
props:
width: 1500
height: 800
janus-idp.backstage-plugin-analytics-provider-segment:
backstage-community.plugin-analytics-provider-segment:
apiFactories:
- importName: SegmentAnalyticsApi
backstage-community.plugin-rbac:
Expand Down
4 changes: 2 additions & 2 deletions dynamic-plugins.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -879,12 +879,12 @@ plugins:
url: ${TECH_RADAR_DATA_URL}


- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-analytics-provider-segment
- package: ./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
janus-idp.backstage-plugin-analytics-provider-segment:
backstage-community.plugin-analytics-provider-segment:
apiFactories:
- importName: SegmentAnalyticsApi
backend:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "janus-idp-backstage-plugin-analytics-provider-segment",
"version": "1.10.0",
"name": "backstage-community-plugin-analytics-provider-segment",
"version": "1.10.2",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
Expand All @@ -11,10 +11,10 @@
},
"backstage": {
"role": "frontend-plugin",
"supported-versions": "1.32.4",
"pluginId": "janus-idp-analytics-provider-segment",
"supported-versions": "1.32.5",
"pluginId": "backstage-community-analytics-provider-segment",
"pluginPackages": [
"janus-idp-backstage-plugin-analytics-provider-segment"
"backstage-community-plugin-analytics-provider-segment"
]
},
"sideEffects": false,
Expand All @@ -28,7 +28,7 @@
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean"
},
"dependencies": {
"@janus-idp/backstage-plugin-analytics-provider-segment": "1.10.0"
"@backstage-community/plugin-analytics-provider-segment": "1.10.2"
},
"devDependencies": {
"@backstage/cli": "0.28.2",
Expand All @@ -39,15 +39,15 @@
"dist-scalprum"
],
"scalprum": {
"name": "janus-idp.backstage-plugin-analytics-provider-segment",
"name": "backstage-community.plugin-analytics-provider-segment",
"exposedModules": {
"PluginRoot": "./src/index.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/janus-idp/backstage-showcase",
"directory": "dynamic-plugins/wrappers/janus-idp-backstage-plugin-analytics-provider-segment"
"directory": "dynamic-plugins/wrappers/backstage-community-plugin-analytics-provider-segment"
},
"maintainers": [
"@janus-idp/maintainers-showcase"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@backstage-community/plugin-analytics-provider-segment";
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src", "dev", "migrations"],
"exclude": ["node_modules"],
"compilerOptions": {
"outDir": "../../../dist-types/dynamic-plugins/wrappers/janus-idp-backstage-plugin-analytics-provider-segment",
"outDir": "../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-analytics-provider-segment",
"rootDir": "."
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": ["//"],
"tasks": {
"tsc": {
"outputs": [
"../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-analytics-provider-segment/**"
]
}
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ test.describe('Check RBAC "analytics-provider-segment" plugin', () => {
test("is disabled", async ({ page }) => {
await page
.getByPlaceholder("Filter")
.pressSequentially("backstage-plugin-analytics-provider-segment\n", {
.pressSequentially("plugin-analytics-provider-segment\n", {
delay: 300,
});
const row = page.locator(
UIhelperPO.rowByText(
"janus-idp-backstage-plugin-analytics-provider-segment",
"backstage-community-plugin-analytics-provider-segment",
),
);
expect(await row.locator("td").nth(2).innerText()).toBe("No"); // not enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('Check "analytics-provider-segment" plugin is enabled', async () => {
const pluginsList = await analytics.getDynamicPluginsList(authHeader);
const isPluginListed = analytics.checkPluginListed(
pluginsList,
"janus-idp-backstage-plugin-analytics-provider-segment",
"backstage-community-plugin-analytics-provider-segment",
);

expect(isPluginListed).toBe(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export const InternalPluginsMap: Record<string, string> = {
'./dynamic-plugins/dist/backstage-community-plugin-tech-radar',
'backstage-community-plugin-tech-radar-backend-dynamic':
'./dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic',
'janus-idp-backstage-plugin-analytics-provider-segment':
'./dynamic-plugins/dist/janus-idp-backstage-plugin-analytics-provider-segment',
'backstage-community-plugin-analytics-provider-segment':
'./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment',
'parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic':
'./dynamic-plugins/dist/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic',
'immobiliarelabs-backstage-plugin-gitlab-backend-dynamic':
Expand Down
Loading

0 comments on commit f63a879

Please sign in to comment.