Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
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
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
TFS
controller
Commits
12b2c871
Commit
12b2c871
authored
2 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
WebUI:
- updated descriptor loading framework
parent
688051a7
No related branches found
No related tags found
2 merge requests
!54
Release 2.0.0
,
!27
New Descriptor Loader Framework and OFC'22 code migrations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/webui/service/main/routes.py
+2
-3
2 additions, 3 deletions
src/webui/service/main/routes.py
with
2 additions
and
3 deletions
src/webui/service/main/routes.py
+
2
−
3
View file @
12b2c871
...
@@ -43,9 +43,8 @@ def process_descriptors(descriptors):
...
@@ -43,9 +43,8 @@ def process_descriptors(descriptors):
flash
(
f
'
Unable to load descriptor file:
{
str
(
e
)
}
'
,
'
danger
'
)
flash
(
f
'
Unable to load descriptor file:
{
str
(
e
)
}
'
,
'
danger
'
)
return
return
descriptor_loader
=
DescriptorLoader
()
descriptor_loader
=
DescriptorLoader
(
descriptors
)
descriptor_loader
.
process_descriptors
(
descriptors
)
results
=
descriptor_loader
.
process
()
results
=
descriptor_loader
.
get_results
()
for
message
,
level
in
compose_notifications
(
results
):
for
message
,
level
in
compose_notifications
(
results
):
flash
(
message
,
level
)
flash
(
message
,
level
)
...
...
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