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

Feature Request: Add capability to permanently delete components from the layout db #21

Open
aaronpearlman opened this issue Dec 7, 2021 · 3 comments
Assignees

Comments

@aaronpearlman
Copy link
Contributor

It would be useful to add a function in ch_util/layout.py that will allow a component to be permanently deleted from the database. This capability currently does not exist.

@mondana
Copy link
Contributor

mondana commented Dec 10, 2021

We have built two telescopes: Pathfinder & CHIME with no need to have this function. So after consulting with the developers, this is not something we need to add.

  • Instead of deleting a component, we should make them "unavailable"
  • Instead of deleting a connection, we should "sever" the connection and add a note. This allows retrieval of connection history and component history.

@aaronpearlman
Copy link
Contributor Author

aaronpearlman commented Dec 11, 2021

If you do not intend to implement a capability to permanently delete components, then please advise how to resolve the errors that are posted on the layout db web interface for the following components that were created several months ago (during testing):

aaron1
aaron5
aaron6

At this point, these components cannot be modified, either through the web or python (peewee) interfaces.

My request for this capability is to ensure that, if such errors arise, we can delete the component from the database without losing the ability to use the unique serial number.

If similar errors arise for one of the critical components for the Outrigger telescopes, what is the plan to resolve this if we encounter a similar problem and do not have the deletion capability?

@mondana
Copy link
Contributor

mondana commented Dec 14, 2021

please share the python script that was used to create those components and I try to recreate the bug and address the issue.

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

No branches or pull requests

2 participants