Filter out powertag topics from profile page listings
Our profile pages https://publiclab.org/profile/warren, https://publiclab.org/profile/stevie, etc - look great! They list topics recently posted to by each author. But, we see a lot of "powertags" -- those that have colons : in them and are for utility use only. They don't represent real "topics"!
So, let's filter them out of this view. It should be relatively easy, since we use @profile_user.tags on this line to generate the list:
https://github.com/publiclab/plots2/blob/6d417a384801e4c20b77c4d6360788f19a78b41c/app/views/tag/_profileCard.html.erb#L2-L6
Let's instead make a new method in /app/models/user.rb for def normal_tags, modeled on the one in /app/models/node.rb:
https://github.com/publiclab/plots2/blob/6d417a384801e4c20b77c4d6360788f19a78b41c/app/models/node.rb#L435-L448
We'd love help with this!
It'd be extra great if you wanted to write a unit test for user.normal_tags - it could be a simple one based on this:
https://github.com/publiclab/plots2/blob/6d417a384801e4c20b77c4d6360788f19a78b41c/test/unit/user_test.rb#L26-L27
(that one also has some redundant repeats that could be removed!)
Anyhow, I'm happy to support if anyone's interested in taking this on!
Yes please go ahead! Thanks!
On Wed, Dec 11, 2019, 5:18 AM palak singhal [email protected] wrote:
Hi, I am a first timer but would like to try this out. Can i be assigned this one?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/6924?email_source=notifications&email_token=AAAF6J7CXOJZDB2UCCWQPADQYC46FA5CNFSM4JV6Y3KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGSTGUI#issuecomment-564474705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J2GQ7AFZ2XNN5X54K3QYC46FANCNFSM4JV6Y3KA .
Is anyone working on this issue? If not, can I give it a try?
I would like to help on this....Let me know if any help is needed
@YuetChan - if you'd like to help out, please open up a PR even with your initial work, so we can see! @pianeta051 it looks like this has been claimed but if @YuetChan does not follow up for a few days, i'm sure we could use the help! Thanks all!