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

feat(directory): Publish Services #4579

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dtroelofsprins
Copy link
Contributor

@dtroelofsprins dtroelofsprins commented Dec 20, 2024

What are the main changes you did

  • Included the Services table in the list of tables to be published
  • Also included QualityInfoServices data which is used in the check if a service can be removed

How to test

  • Either run dev.py locally
  • Or use the 1.2.0-dev0 version from testpypi

Some output from test-runs:
=> add new service:
image

=> Delete a service which has a quality:
🧼 Cleaning up removed data in Directory tables
⚠️ Prevented the deletion of a row that is referenced from the quality info: services bbmri-eric:serviceID:NL_test.

=> Delete a service without any qualities:
image

Checklist

  • [nvt] updated docs in case of new feature
  • added/updated tests

@@ -288,13 +290,15 @@ class Source(Enum):
@dataclass
class DirectoryData(ABC):
"""Abstract base class for containers storing rows from the seven Directory tables:
Copy link
Member

Choose a reason for hiding this comment

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

Now it is eight ;-)

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