Commit graph

4671 commits

Author SHA1 Message Date
Joey Orlando
5cf479dcdb
Merge pull request #5074 from grafana/helm-release/1.9.29
Merge: Release oncall Helm chart 1.9.29
2024-09-24 14:17:10 -04:00
GitHub Actions
fcb3c639dd Release oncall Helm chart 1.9.29 2024-09-24 18:16:48 +00:00
Joey Orlando
40f8d7b013
Revert "Merge: Release oncall Helm chart 1.9.29" 2024-09-24 14:00:13 -04:00
Joey Orlando
229179fc97
Revert "Merge: Release oncall Helm chart 1.9.29" 2024-09-24 13:59:52 -04:00
Joey Orlando
74159054a6
patching helm update github workflow 2024-09-24 13:52:37 -04:00
Joey Orlando
1892d347d1
Merge pull request #5071 from grafana/helm-release/1.9.29
Merge: Release oncall Helm chart 1.9.29
2024-09-24 13:36:36 -04:00
GitHub Actions
645cfee26a Release oncall Helm chart 1.9.29 2024-09-24 17:36:16 +00:00
Joey Orlando
dabba1fa10
v1.9.29 2024-09-24 13:20:47 -04:00
Yulya Artyukhina
fc58aaad20
Merge main to dev (#5068)
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
Co-authored-by: Matias Bordese <mbordese@gmail.com>
Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
Co-authored-by: Dominik Broj <dominik.broj@grafana.com>
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
2024-09-24 13:13:51 -04:00
Joey Orlando
d958bffe8f
Merge branch 'dev' into main 2024-09-24 13:12:32 -04:00
Joey Orlando
7586b04f8a
fix "on helm release pr merged" GitHub Actions workflow (#5069)
# What this PR does

- Closes https://github.com/grafana/oncall/issues/5065
- Fixes [failing update Helm repo github
workflows](https://github.com/grafana/oncall/actions/workflows/on-helm-release-pr-merged.yml)
(due to `secrets. GH_HELM_RELEASE` now seeming to return "Bad
credentials")

## TODO

- [ ] after this PR is merged and change merged to `main`, remove
`GH_HELM_RELEASE` repository secret

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-24 17:00:37 +00:00
Yulya Artyukhina
cd54600340
Merge pull request #5067 from grafana/julia/add_started_at_default_filter_value
Add default value for `started_at` filter for `/alertgroups` internal endpoint
2024-09-24 18:14:21 +02:00
Julia
1065748008 update filtering by started_at 2024-09-24 18:00:45 +02:00
Julia
f577073464 Fix comment 2024-09-24 17:38:48 +02:00
Julia
5fd1cf3be3 Add default value for started_at filter for /alertgroups internal endpoint 2024-09-24 17:35:52 +02:00
maltelehmann
5bce7bf9da
docs: add templates.mobile_app entry to Integrations API docs (#5054)
# What this PR does

Related to
https://github.com/grafana/terraform-provider-grafana/issues/1665

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-09-24 10:47:43 -04:00
Matias Bordese
4abfb205ef
Ignore resolve condition template if source resolving is disabled (#5049)
Related to https://github.com/grafana/support-escalations/issues/12528
2024-09-23 18:01:59 +00:00
Joey Orlando
737eaf79cc
ci: patch issue in gcom curl command (#5061)
## Which issue(s) this PR closes

Fix
https://github.com/grafana/oncall/actions/runs/10997991428/job/30535419238#step:9:1
2024-09-23 12:30:31 -04:00
Joey Orlando
f5f18f2f62
Merge pull request #5062 from grafana/helm-release/1.9.27
Merge: Release oncall Helm chart 1.9.27
2024-09-23 12:27:36 -04:00
GitHub Actions
7facac4aef Release oncall Helm chart 1.9.27 2024-09-23 16:27:13 +00:00
Joey Orlando
1f3edd6ba9
v1.9.27 2024-09-23 11:58:25 -04:00
Joey Orlando
e882e9782d
ci: update oss plugin release process (#5051)
# What this PR does

Related to https://github.com/grafana/irm/pull/137 (**NOTE**: should
only be merged after those changed are back-merged here into
`grafana/oncall`)

## Which issue(s) this PR closes

Also, fixes https://github.com/grafana/oncall/issues/5028

---------

Co-authored-by: Dominik <dominik.broj@grafana.com>
2024-09-23 11:56:16 -04:00
Ravishankar
20d2d5a578
feat: Add silence and unsilence public api endpoint (#5031)
# What this PR does
Exposes alert group silence and unsilence via public api endpoint

## Which issue(s) this PR closes
[#5026](https://github.com/grafana/oncall/issues/5026)

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-23 12:33:12 +00:00
Joey Orlando
d82ca01b31
Merge pull request #5058 from grafana/helm-release/1.9.26
Merge: Release oncall Helm chart 1.9.26
2024-09-23 05:56:13 -04:00
GitHub Actions
d26b35b616 Release oncall Helm chart 1.9.26 2024-09-23 09:55:53 +00:00
Ildar Iskhakov
65fce5e73c
Merge pull request #5057 from grafana/dev
v1.9.26
2024-09-23 17:30:12 +08:00
Ildar Iskhakov
82c564fecb
Check for invalid urls in slack (#5055)
# What this PR does


We recently changed the default template
(https://github.com/grafana/oncall/pull/5005) but some alertmanagers may
send invalid URLs.

Our fronted has the check for invalid URLs ("he Integration template
Source Link is invalid"), but slack does not, so I added this check


## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-23 08:45:32 +00:00
Ravishankar
1f209cd2bd
fix: Add rolling users validation for oncall shift API (#5050)
# What this PR does
Adds validation for rolling users param in the shift api

## Which issue(s) this PR closes
Closes [5041](https://github.com/grafana/oncall/issues/5041)

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-20 21:06:33 +00:00
Joey Orlando
2cb8f4a24f
ci: fix snyk security scans (#5046)
# What this PR does

Similar to https://github.com/grafana/gops-labels/pull/137, use common
vault secret rather than the org github secret
2024-09-19 16:05:16 -04:00
Jack Baldry
d9b1196e3c
Use centralized 'Add to docs project' workflow with GitHub App auth (#5045)
Until this is merged, it is likely that any issues labeled `type/docs`
won't be added to the [organization
project](https://github.com/orgs/grafana/projects/69).

The underlying action is centralized so that any future changes are made
in one place (`grafana/writers-toolkit`). The action is versioned to
protect workflows from breaking changes.

The action uses Vault secrets instead of the discouraged organization
secrets.

The workflow uses a consistent name so that future changes can be made
programmatically.

Relates to
https://github.com/orgs/grafana/projects/279/views/9?pane=issue&itemId=44280262

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-09-19 15:01:18 +00:00
Matias Bordese
11f5f489df
Add incident API client (#5040)
Related to https://github.com/grafana/oncall-private/issues/2831
2024-09-19 13:35:42 +00:00
Rares Mardare
f0bfc4d40b
Rares/v1.6.5 labels (#5042)
Required for https://github.com/grafana/gops-labels/pull/140

---------

Co-authored-by: Dominik Broj <dominik.broj@grafana.com>
2024-09-19 12:03:47 +00:00
Dominik Broj
3a125e004f
test: use 4 workers, disable timezone test (#5044)
# What this PR does
Toggle off timezone test temporarily
Use 4 workers always

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-19 11:25:17 +00:00
Rares Mardare
1bed73a13d
Bump @grafana/labels to 1.6.4 (#5038)
https://github.com/grafana/gops-labels/pull/136
2024-09-18 14:21:16 +00:00
Rares Mardare
d8d4a58035
Migrate remaining stylesheets to Emotion (#5022)
Closes https://github.com/grafana/oncall/issues/4201
2024-09-18 14:20:46 +00:00
Ildar Iskhakov
c7a7a3f81a
Use dataclass methods in custom ratelimits and fix tests (#5036)
# What this PR does

Follow up PR for https://github.com/grafana/oncall/pull/5004
Tests haven’t caught a bug, so the method and the tests are fixed

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-18 13:32:16 +00:00
Ildar Iskhakov
61902d5889
Bump base image version (#5033)
# What this PR does

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-17 23:19:43 +00:00
Ildar Iskhakov
c718863bd8
Add custom ratelimits per org (#5004)
# What this PR does

This PR refactors Throttling for public API and integrations API and
allows to specify organization ratelimits.


## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-17 23:16:41 +00:00
Dominik Broj
dd6d2ab161
chore: always point livereload to localhost (#5029)
# What this PR does

Always point livereload to localhost. I missed this change when
submitting this PR: https://github.com/grafana/oncall/pull/5021

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-17 15:11:30 +00:00
Michael Derynck
51ff0e0b9e
Revert "Fix <a> link escaping in web template" (#5024)
Reverts grafana/oncall#5019

Investigating alternatives, although we have a sanitize function called
on the UI side we probably don't want to allow other html.
2024-09-13 20:27:15 +00:00
Joey Orlando
1558f58bc7
improve reliability of scheduleList +timezone e2e tests (#5023)
# What this PR does

Related to https://github.com/grafana/irm/pull/99

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4991
2024-09-13 15:34:47 -04:00
Michael Derynck
091dc68e2c
Fix <a> link escaping in web template (#5019)
# What this PR does
Removed escaping of html in web template to fix issue where <a> links
were not being detected correctly when post processing the web template.

## Which issue(s) this PR closes

https://github.com/grafana/support-escalations/issues/12412

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-13 18:40:59 +00:00
Dominik Broj
4ba65b0042
chore: serve local dist (#5021)
# What this PR does
provide command to serve local dist folder without running local Grafana


## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-13 12:44:20 +00:00
Alyssa Wada
ed6ab02a3b
docs: hide slack doc from toc (#5015)
# What this PR does

This PR hides the IRM Slack doc currently located in the OnCall TOC to
support moving this content to the top-level IRM docs navigation. This
will improve visibility and clarify that this is an IRM feature, not
just an OnCall feature.

Rather than removing the document altogether, we can hide it so that the
URL is still active for anyone who is directed to it. This also gives us
transition time to update the links in the product and elsewhere.

## Background

This update addresses our initial feedback on the Unified IRM Slack app.
The goal of this change is to reduce confusion around migration and
document location to ease the transition to the new app.

Replacement docs can be found here:
https://github.com/grafana/website/pull/21657

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-12 18:19:22 +00:00
Joey Orlando
286eacfb4f
Merge pull request #5016 from grafana/helm-release/1.9.25
Merge: Release oncall Helm chart 1.9.25
2024-09-11 15:12:20 -04:00
GitHub Actions
56cd14c1ca Release oncall Helm chart 1.9.25 2024-09-11 19:11:59 +00:00
Michael Derynck
526aa5ee3c
Merge pull request #5014 from grafana/dev
v1.9.25
2024-09-11 12:56:22 -06:00
Michael Derynck
ead79b36af
Enable schedule for new sync process (#4992)
# What this PR does
Replaces old scheduled sync task with new one.

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-11 18:24:03 +00:00
Denis Arslanbekov
b2f392f835
Bump Redis deps (#4997)
Can we update this dependency? The current version of Redis has CVE.
2024-09-11 17:22:25 +00:00
Joey Orlando
ea813c9b5e
fix some Tilt hiccups (#5013)
## Which issue(s) this PR closes

- Tilt would complain, on a completely fresh setup, if the
`./dev/helm-local.dev.yml` file didn't exist
- fix issue when building the `grpcio` wheel
2024-09-11 12:34:53 -04:00