betodealmeida commented on issue #7418: Tagging frontend
URL: 
https://github.com/apache/incubator-superset/pull/7418#issuecomment-503684944
 
 
   @etr2460 
   
   > Is there a reason why you choose to create individual API functions 
instead of a set of redux actions to fetch and update tags? It makes sense to 
pull the tagging actions into its own file because it would be shared between 
both Explore and Dashboard views, but I think that maintaining the state of 
tags in its own redux store would be more typical and follow the patterns i've 
seen throughout superset already.
   
   Great question. Yeah, we've been running this code at Lyft for maybe a year 
now, so it's definitely outdated and would be written differently from scratch 
today.
   
   IIRC we went with API functions since the state lives outside the 
applications (explore, dashboards, SQL Lab). Maybe @mistercrunch remembers 
better?
   
   > I would recommend creating a new directory in assets/src/tags to keep the 
component files, the main tags page, the redux actions and the reducers and 
then wire up the required state to both explore and dashboard components. It 
would make tagging consistent with the rest of the app, clearer, and easier to 
maintain.
   
   +1

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to