-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Revamp/deprecate tag aliasing, migrate aliases to new tags #6367
Comments
This is great! |
Can I work on this @jywarren ? |
You're welcome to begin on part of it! It's a big project! For example the following would be done through a migration script in
Code currently driving this system is mostly in the Lines 105 to 111 in d7a021d
However, first would we want to re-subscribe people? I guess I think not. The tags will both still exist. If we want to do something like this in follow-up, we can. Critically here, let's /keep/ a list of all tags that have parents so we can track it. Here, i ran this in the console on the production server:
Here they are as
|
Then, we'd want to add these all to this list of subtags: Lines 850 to 855 in d7a021d
Actually that makes a nice first-timers-only issue! |
Made it here: #9398 |
For removing the code, we can do that now, and it's the following locations:
Removing the above should cause the following tests to fail, but we should just then remove these tests:
|
Few questions,
pinging @jywarren |
Hello @manishaag7, I have already opened a PR (#9403) for this particular issue. But as @jywarren said, you can work on this as this is a big project. |
ok thanks @jcads |
Yes, that's correct! Sorry for the slow reply!!! Thank you! And thanks @manishaag7 we appreciate all the help we can get. 🎉 |
We have 3 scenarios which relate tags to one another:
- all good: https://publiclab.org/search?q=water+education, https://publiclab.org/search?q=water-education
- https://booleanstrings.com/2018/03/08/the-full-list-of-google-advanced-search-operators/
Our current "tag aliasing" system is very fragile and has lots of cumbersome code, and is hard to maintain.
Proposal: migrate tag alias system to automated re-tagging system
Notes on different solutions to this issue:
1: https://publiclab.org/tag/legal+evidence+permits+regulations
- (ALL, or any content that has ALL those tags) - logical operators?
does this mean restricting results in this URL to content that only has all four of these tags?
- what's useful?
2: https://publiclab.org/wiki/combined-legal grid:
- [notes:legal+evidence+permits+regulations] (manually doing it on a wiki page)
useful?
3: tag aliasing: https://publiclab.org/tag/legal (where evidence+permits+regulations are aliased from it...)
- content tagged 'oil' already appears to be showing up on /tag/oil-and-gas, so i suppose this is aliased already?
- This is an old feature that doubles the work that the server has to do. Currently doubling the amount of work that goes into any feature.
4: manual re-tagging
- bad --> i would like to revisit this adjective.
5: Automated Re-tagging
- write a script that adds "oil-and-gas" to any "oil" or any "gas" post
6: real-time auto-tagging - at publish timefor 6, we can expand this:
The text was updated successfully, but these errors were encountered: