Skip to content
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

Move tag handling to base website, update parser #286

Merged
merged 7 commits into from
Dec 20, 2023

Conversation

aneillans
Copy link
Contributor

As discussed in #280 this focusses on correcting only the parsers behaviour (took a cleaner route this time).
Went through the integrations and checked them as much as I could, removed injection where found, removed unnecessary code, but also trying to use base class functionality for as much as possible.

@mvdicarlo
Copy link
Owner

See comments and resolve merge conflicts. Solution is largely fine overall.

@aneillans aneillans force-pushed the Change-Tags-Behaviour branch 2 times, most recently from 09fa2c6 to 8a5a499 Compare December 13, 2023 19:39
@aneillans aneillans force-pushed the Change-Tags-Behaviour branch from 8a5a499 to 39f6aca Compare December 13, 2023 19:42
@mvdicarlo mvdicarlo merged commit 2558b65 into mvdicarlo:develop Dec 20, 2023
@aneillans aneillans deleted the Change-Tags-Behaviour branch December 23, 2023 20:31
askmeaboutlo0m added a commit to askmeaboutlo0m/postybirb-plus that referenced this pull request Jul 22, 2024
The validation functions would get passed the raw description as entered
by the user and would make some half-hearted effort to parse them into
something sensible, but this completely breaks down in the face of
shortcuts like {default}, username shortcuts that get turned into long
links etc. Now those functions get the actually parsed description
passed to them, the only unresolved shortcut in them being the `{tags}`
one, since the length of that is variable and up to the validation
function to deal with and tell the user if tags didn't fit.

Since mvdicarlo#286, tags insertion is also pretty much busted entirely, since it
runs at the wrong time, so it may insert too many tags and then cause an
error down the line because the resulting description is too long. That
insertion logic has now been moved to the end of the description
processing, where it belongs.
askmeaboutlo0m added a commit to askmeaboutlo0m/postybirb-plus that referenced this pull request Jul 24, 2024
The validation functions would get passed the raw description as entered
by the user and would make some half-hearted effort to parse them into
something sensible, but this completely breaks down in the face of
shortcuts like {default}, username shortcuts that get turned into long
links etc. Now those functions get the actually parsed description
passed to them, the only unresolved shortcut in them being the `{tags}`
one, since the length of that is variable and up to the validation
function to deal with and tell the user if tags didn't fit.

Since mvdicarlo#286, tags insertion is also pretty much busted entirely, since it
runs at the wrong time, so it may insert too many tags and then cause an
error down the line because the resulting description is too long. That
insertion logic has now been moved to the end of the description
processing, where it belongs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants