Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netvs-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-middleware
Commits
6d477231
Commit
6d477231
authored
2 weeks ago
by
Alexander Kaschta
Browse files
Options
Downloads
Patches
Plain Diff
UPD: E-Mail override settings for devel
parent
b0b5d073
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#420233
passed
2 weeks ago
Stage: lint
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/bcd_request.py
+4
-4
4 additions, 4 deletions
api/bcd_request.py
model/settings.py
+2
-1
2 additions, 1 deletion
model/settings.py
with
6 additions
and
5 deletions
api/bcd_request.py
+
4
−
4
View file @
6d477231
...
...
@@ -256,8 +256,8 @@ def send_bcd_request(bcd_request: BCDRequestModel, mgr: Mgr, receiver=settings.b
subject
=
f
'
[
{
host_mode
}
]
{
subject
}
'
# hacky way to intercept mails for development. In production, the assignment should be used
if
settings
.
bcd_request_
e
mail_receiver
s
is
not
None
:
receiver
=
settings
.
bcd_request_
e
mail_receiver
s
if
settings
.
bcd_request_
override_
mail_receiver
is
not
None
:
receiver
=
settings
.
bcd_request_
override_
mail_receiver
send_email
(
to
=
receiver
,
sender
=
settings
.
patch_request_email_sender
,
...
...
@@ -289,8 +289,8 @@ def send_bcd_request_confirmation(bcd_request: BCDRequestModel, mgr: Mgr, receiv
subject
=
f
'
[
{
host_mode
}
]
{
subject
}
'
# hacky way to intercept mails for development. In production, the assignment should be used
if
settings
.
patch
_request_
e
mail_receiver
s
is
not
None
:
receiver
=
settings
.
patch
_request_
e
mail_receiver
s
if
settings
.
bcd
_request_
override_
mail_receiver
is
not
None
:
receiver
=
settings
.
bcd
_request_
override_
mail_receiver
send_email
(
to
=
receiver
,
sender
=
settings
.
bcd_request_email_sender
,
...
...
This diff is collapsed.
Click to expand it.
model/settings.py
+
2
−
1
View file @
6d477231
...
...
@@ -49,7 +49,8 @@ class Settings(BaseSettings):
patch_request_email_sender
:
str
=
''
patch_request_assignment
:
dict
[
str
,
str
]
=
{}
bcd_request_email_receivers
:
Optional
[
str
]
=
None
bcd_request_email_receivers
:
str
=
None
bcd_request_override_mail_receiver
:
Optional
[
str
]
=
None
bcd_request_email_sender
:
str
=
''
mail_smarthost
:
str
=
'
smarthost.kit.edu
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment