Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to main #3150

Merged
merged 5 commits into from
Oct 16, 2023
Merged

Dev to main #3150

merged 5 commits into from
Oct 16, 2023

Conversation

mderynck
Copy link
Contributor

No description provided.

github-actions bot and others added 5 commits October 6, 2023 08:30
Signed-off-by: Jack Baldry <[email protected]>
Co-authored-by: grafanabot <[email protected]>
Co-authored-by: Jack Baldry <[email protected]>
Prefer partial since it is the what the [docs
suggests](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#performing-actions-after-commit).
Also because partial is evaluated immediately while lambda is evaluated
at runtime (which may be causing some issues):

```
>>> from functools import partial
>>> def foo(a, b, c):
...   print(a, b, c)
... 
>>> x = 10
>>> bar_partial = partial(foo, 1, 2, x)
>>> bar_lambda = lambda: foo(1, 2, x)
>>> x = 20
>>> bar_partial()
1 2 10
>>> bar_lambda()
1 2 20
```
When the direct paging role was
[introduced](#3107), the OnCaller
role didn't keep the permission to use this feature.
Also, being an OnCaller, makes sense user can update their own
notification settings.

Related grafana/support-escalations#7840.
# What this PR does
Change status to return backend URL in the same way (trailing /) that is
used to build URLs throughout by using create_engine_url utility
function.

## Which issue(s) this PR fixes

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
@mderynck mderynck requested a review from jdbaldry as a code owner October 16, 2023 21:28
@mderynck mderynck requested review from a team October 16, 2023 21:28
@mderynck mderynck merged commit 0e41125 into main Oct 16, 2023
32 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants