Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: respect agent_id and deleted_at for topologies #1167

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

yashmehrotra
Copy link
Member

No description provided.

@@ -63,7 +63,11 @@ func GetTopology(ctx context.Context, id string) (*v1.Topology, error) {
func GetAllTopologiesForSync() ([]v1.Topology, error) {
var v1topologies []v1.Topology
var topologies []pkg.Topology
if err := Gorm.Table("topologies").Find(&topologies).Where("deleted_at is NULL AND namespace != 'push'").Error; err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

Since .Find was being called first and is a finisher method, we were never respecting deleted at

@moshloop moshloop merged commit dddab13 into master Jul 20, 2023
11 checks passed
@yashmehrotra yashmehrotra deleted the respect-deleted-agent-id branch August 2, 2023 07:06
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.

2 participants