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

RAD-5189 Delete Data Source Script #13

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

Conversation

francisco-cruz-o
Copy link

@francisco-cruz-o francisco-cruz-o commented Aug 7, 2024

Description

RAD-5189
A script is being requested to have the ability to delete multiple data sources in mango.

A/C

When deleting a data source:

  • Delete all data points on the data source
  • Delete all events for all data points on the data source
  • If points are published, they should be removed from the publisher
  • Confirm if this will work while the publisher is running
  • Remove event detectors before deleting data points
  • Unlink event handlers before deleting event detectors

Script will require data source ID and XID

  • Always validate 2 values before performing bulk delete operations

Current behavior

No script with the ability to delete multiple data sources in mango.

Expected behavior

Have a script with the ability to delete multiple data sources in mango.

Changes

  • Add script for delete data sources

Resources

RAD-5189.mp4

Tests

  • Manual testing

@francisco-cruz-o francisco-cruz-o marked this pull request as ready for review August 7, 2024 23:53
Copy link
Contributor

@jpuccinit jpuccinit left a comment

Choose a reason for hiding this comment

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

Please Add, Put at the top of the file which version of mango it runs on,
At the bottom the SQL command to generate the CSV file "data-source-to-delete.csv"

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