Skip to content

Skip deactivated nodes in namespace export.#1419

Merged
agorajek merged 2 commits intomainfrom
project-pull-bug-fix
Jun 21, 2025
Merged

Skip deactivated nodes in namespace export.#1419
agorajek merged 2 commits intomainfrom
project-pull-bug-fix

Conversation

@agorajek
Copy link
Copy Markdown
Member

Summary

Because we should.

Test Plan

Unit tests and some manual calls.

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

Auto.

@agorajek agorajek requested review from Copilot and shangyian June 20, 2025 21:31
@netlify
Copy link
Copy Markdown

netlify bot commented Jun 20, 2025

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 1af68bd
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6855daeb1aba6e000847d9d9

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the namespace export functionality so that deactivated nodes are no longer included in the output.

  • Adds a filter on deactivated_at to skip deactivated nodes in the internal query
  • Enhances the export test to deactivate a node and verify it’s omitted
  • Adjusts the expected file list in the export test to comment out the deactivated node

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
datajunction-server/datajunction_server/internal/namespaces.py Filters out nodes where deactivated_at is set
datajunction-server/tests/api/namespaces_test.py Deactivates a node in test and removes its entry from expected list

Copy link
Copy Markdown
Collaborator

@shangyian shangyian left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@agorajek agorajek force-pushed the project-pull-bug-fix branch from eb16df1 to 1af68bd Compare June 20, 2025 22:04
@agorajek agorajek merged commit 5d0cfe5 into main Jun 21, 2025
17 checks passed
@agorajek agorajek deleted the project-pull-bug-fix branch June 21, 2025 00:35
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.

3 participants