Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!234
fix query for get_active_insync_subscriptions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix query for get_active_insync_subscriptions
fix/query-for-get_active_insync_subscriptions
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Mohammad Torkashvand
requested to merge
fix/query-for-get_active_insync_subscriptions
into
develop
10 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
0a214758
1 commit,
10 months ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gso/services/subscriptions.py
+
1
−
1
Options
@@ -214,7 +214,7 @@ def get_active_insync_subscriptions() -> list[SubscriptionTable]:
"""
Retrieve all subscriptions that are currently active and in sync.
"""
return
(
SubscriptionTable
.
query
.
join
(
ProductTable
)
.
filter
(
SubscriptionTable
.
insync
.
is_
(
True
),
SubscriptionTable
.
status
.
is_
(
SubscriptionLifecycle
.
ACTIVE
)
)
.
filter
(
SubscriptionTable
.
insync
.
is_
(
True
),
SubscriptionTable
.
status
==
SubscriptionLifecycle
.
ACTIVE
.
value
)
.
all
()
)
Loading