You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "john-bodley (via GitHub)" <gi...@apache.org> on 2023/03/15 23:40:04 UTC

[GitHub] [superset] john-bodley opened a new pull request, #23387: fix(sql-lab): Tracking URL getter/setter

john-bodley opened a new pull request, #23387:
URL: https://github.com/apache/superset/pull/23387

   <!---
   Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### 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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] michael-s-molina closed pull request #23387: fix(sql lab): Tracking URL getter/setter

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina closed pull request #23387: fix(sql lab): Tracking URL getter/setter
URL: https://github.com/apache/superset/pull/23387


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] john-bodley commented on pull request #23387: fix(sql lab): Tracking URL getter/setter

Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on PR #23387:
URL: https://github.com/apache/superset/pull/23387#issuecomment-1473271519

   @ktmud if that's the case then rather than augmenting the `tracking_url` (via a getter/setter method)which corresponds to an actual column in the table (which likely adds to some level of confusion, i.e., I was tripped on this), why not move the logic which resides in, 
   
   ```python
   @property
   def tracking_url(self) -> Optional[str]:
    ...
   ```
   
   to a different property, maybe `tracking_url_transformed` and expose that to the frontend for rendering purposes?
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] ktmud commented on pull request #23387: fix(sql lab): Tracking URL getter/setter

Posted by "ktmud (via GitHub)" <gi...@apache.org>.
ktmud commented on PR #23387:
URL: https://github.com/apache/superset/pull/23387#issuecomment-1480352027

   I _think_ I've tried that but didn't know how to expose a new property in FAB 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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] codecov[bot] commented on pull request #23387: fix(sql-lab): Tracking URL getter/setter

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #23387:
URL: https://github.com/apache/superset/pull/23387#issuecomment-1470992392

   ## [Codecov](https://codecov.io/gh/apache/superset/pull/23387?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#23387](https://codecov.io/gh/apache/superset/pull/23387?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (71d3336) into [master](https://codecov.io/gh/apache/superset/commit/da3791ad3daa209631a588394600d1a8b635e814?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (da3791a) will **decrease** coverage by `0.01%`.
   > The diff coverage is `100.00%`.
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #23387      +/-   ##
   ==========================================
   - Coverage   56.27%   56.26%   -0.01%     
   ==========================================
     Files        1907     1907              
     Lines       73495    73494       -1     
     Branches     7977     7977              
   ==========================================
   - Hits        41356    41355       -1     
     Misses      30091    30091              
     Partials     2048     2048              
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | presto | `52.69% <100.00%> (-0.01%)` | :arrow_down: |
   | python | `58.90% <100.00%> (-0.01%)` | :arrow_down: |
   | unit | `52.50% <100.00%> (+<0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/superset/pull/23387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [superset/models/sql\_lab.py](https://codecov.io/gh/apache/superset/pull/23387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQvbW9kZWxzL3NxbF9sYWIucHk=) | `70.31% <100.00%> (-0.12%)` | :arrow_down: |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] michael-s-molina commented on pull request #23387: fix(sql lab): Tracking URL getter/setter

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #23387:
URL: https://github.com/apache/superset/pull/23387#issuecomment-1472298776

   > Typically the getter should simply return the value whereas the setter should perform the necessary augmentation which is the logic I've implemented here, i.e., the _tracking_url column always contains the correct transformed value (if appropriate) whereas previous only the tracking_url field (proxy) was correct.
   
   @john-bodley Would we need a migration to transform previously saved values?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] ktmud commented on pull request #23387: fix(sql lab): Tracking URL getter/setter

Posted by "ktmud (via GitHub)" <gi...@apache.org>.
ktmud commented on PR #23387:
URL: https://github.com/apache/superset/pull/23387#issuecomment-1472628348

   The original intention was to store the raw url and always transform the url at runtime. This was by design.
   
   We need transform at runtime because certain urls expires and we need to return None when they do.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org