Vitor-Avila opened a new pull request, #33626:
URL: https://github.com/apache/superset/pull/33626

   ### SUMMARY
   The `last_modified` value for datasets was not getting updated in case only 
metric(s) and/or column(s) changed. I suspect the issue started with the 
introduction of the `@transaction` decorator + the way we handle these updates:
   - Before [SIP-99B](https://github.com/apache/superset/issues/25108), we 
would `commit` after these changes -- 
[ref](https://github.com/apache/superset/commit/8fb8199a55257ae5121300aa3bd28d14d327bc33#diff-1fabcc7af69ff8ee94b640857ad3552402286c735a5a770b9d14f204774c8f60L269-L322).
   - We're currently using `` for the update which does not integrate well with 
SQLAlchemy's state management (and therefore does not trigger an 
`after_update`) -- 
[ref](https://github.com/apache/superset/blob/master/superset/daos/dataset.py#L233-L256).
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   **Before**
   
   
https://github.com/user-attachments/assets/9187b29a-bc63-4c6e-9ee7-8db8254cd4bd
   
   **After**
   
   
https://github.com/user-attachments/assets/67a82bcc-0f57-4450-a540-1968c1526201
   
   
   
   ### TESTING INSTRUCTIONS
   1. Apply a label to a column, and confirm the `last_modified` value for the 
dataset gets updated.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to