Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Merge requests
!115
Greg 86 notification format changes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Greg 86 notification format changes
GREG-86-notification-format-changes
into
master
Overview
0
Commits
4
Pipelines
3
Changes
3
Merged
Jonas Braathen
requested to merge
GREG-86-notification-format-changes
into
master
3 years ago
Overview
0
Commits
4
Pipelines
3
Changes
3
Expand
0
0
Merge request reports
Viewing commit
a1963f2a
Show latest version
3 files
+
4
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
a1963f2a
Fix typing and linting errors
· a1963f2a
Jonas Braathen
authored
3 years ago
greg/management/commands/notification_publisher.py
+
0
−
1
Options
@@ -49,7 +49,6 @@ def create_cloud_event_payload(n: Notification) -> str:
@@ -49,7 +49,6 @@ def create_cloud_event_payload(n: Notification) -> str:
and source, i.e no.local.greg.person.add
and source, i.e no.local.greg.person.add
"""
"""
object_type
=
camel_to_snake
(
n
.
object_type
)
content
:
dict
[
str
,
Union
[
str
,
dict
[
str
,
str
]]]
=
{
content
:
dict
[
str
,
Union
[
str
,
dict
[
str
,
str
]]]
=
{
"
id
"
:
str
(
n
.
id
),
"
id
"
:
str
(
n
.
id
),
"
source
"
:
f
"
greg:
{
settings
.
INSTANCE_NAME
}
:
{
settings
.
ENVIRONMENT
}
"
,
"
source
"
:
f
"
greg:
{
settings
.
INSTANCE_NAME
}
:
{
settings
.
ENVIRONMENT
}
"
,
Loading