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

chore: Allow only iterables for BaseDAO.delete() #25844

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Nov 2, 2023

SUMMARY

Previous—due to legacy reasons when we had both single and bulk delete logic—the BaseDAO.delete() method accepted either a single item or a list of items. For simplicity and clarity this PR updates the function signature to support only the later. i.e., it is now apparent from the code that deletion is a bulk operation.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

CI.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link
Contributor

@giftig giftig left a comment

Choose a reason for hiding this comment

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

LGTM

@michael-s-molina
Copy link
Member

@john-bodley I like the cleanup but isn't this a breaking change? What if someone is extending the BaseDAO to provide custom functionality?

@john-bodley
Copy link
Member Author

@michael-s-molina couldn’t you extend that same logic for any change, i.e., in #25819 what if someone was referring to the old class? I guess it really depends on one’s interpretation of what’s public and in this case whether the intent is for DAOs to extended/leveraged in custom configurations.

@michael-s-molina
Copy link
Member

@michael-s-molina couldn’t you extend that same logic for any change, i.e., in #25819 what if someone was referring to the old class?

The difference in this case is that tags are not officially released yet.

I guess it really depends on one’s interpretation of what’s public and in this case whether the intent is for DAOs to extended/leveraged in custom configurations.

I agree. Some parts are easy to identify as potential for breaking changes such as APIs or database engine specs. Other parts such as DAOs or form data are not so clear. Maybe we should bring this discussion to the Town Hall and formalize the constraints. @villebro @rusackas @betodealmeida @eschutho

@john-bodley
Copy link
Member Author

@michael-s-molina per the recently added Semantic Versioning wiki page do you feel this is non-breaking and thus could be merged prior to the 3.1 branch cut?

@michael-s-molina michael-s-molina merged commit 843c7ab into apache:master Nov 22, 2023
josedev-union pushed a commit to Ortege-xyz/studio that referenced this pull request Jan 22, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants