Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
fixed routes
  • Loading branch information
teodosii committed Mar 30, 2023
1 parent 4b1f495 commit 4f2fc85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changes

- Renamed routes from /incidents to /alert-groups ([#1678](https://github.com/grafana/oncall/pull/1678))

## v1.2.6 (2023-03-30)

### Fixed
Expand Down
13 changes: 0 additions & 13 deletions grafana-plugin/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ export const pages: { [id: string]: PageDefinition } = [
path: getPath('alert-groups'),
action: UserActions.AlertGroupsRead,
},
{
icon: 'bell',
id: 'alert-group',
text: '',
hideFromTabs: true,
hideFromBreadcrumbs: true,
parentItem: {
text: 'Alert Group',
url: `${PLUGIN_ROOT}/alert-groups`,
},
path: getPath('alert-groups'),
action: UserActions.AlertGroupsRead,
},
{
icon: 'users-alt',
id: 'users',
Expand Down
1 change: 1 addition & 0 deletions grafana-plugin/src/plugin/GrafanaPluginRootPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export const Root = observer((props: AppRootProps) => {
<CloudPage />
</Route>

{/* Backwards compatibility redirect routes */}
<Route
path={getRoutesForPage('incident')}
exact
Expand Down
2 changes: 1 addition & 1 deletion grafana-plugin/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function getPathFromQueryParams(query: ParsedQuery<string>) {
path += `/${normalizedQuery.page}`;

if (normalizedQuery.id) {
if (normalizedQuery.page === 'alert-group' || normalizedQuery.page === 'schedule') {
if (normalizedQuery.page === 'incident' || normalizedQuery.page === 'schedule') {
path += 's';
}

Expand Down

0 comments on commit 4f2fc85

Please sign in to comment.