Skip to content

add the status of stopping for service and add project filter when ge…#1747

Open
sokril wants to merge 1 commit intodevfrom
stopping
Open

add the status of stopping for service and add project filter when ge…#1747
sokril wants to merge 1 commit intodevfrom
stopping

Conversation

@sokril
Copy link
Copy Markdown
Contributor

@sokril sokril commented Mar 4, 2021

…tting service list
fix #686

func GetServiceList(name string, userID int64, source *int, sourceid *int64) ([]*model.ServiceStatusMO, error) {
query := model.ServiceStatusFilter{Name: name, Source: source, SourceID: sourceid}
func GetServiceList(name string, projectID int64, userID int64, source *int, sourceid *int64) ([]*model.ServiceStatusMO, error) {
query := model.ServiceStatusFilter{Name: name, ProjectID: projectID, Source: source, SourceID: sourceid}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change or add a SQL query instead to pass a specific parameter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is reuse the SQL,and improve the function of "ServiceStatusFilter"。

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.

add stopping status when stop service

3 participants