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

Added an option to retain the case of campaign parameter values via SystemSetting, #PG-2343 #166

Merged
merged 21 commits into from
Dec 6, 2024

Conversation

AltamashShaikh
Copy link
Contributor

@AltamashShaikh AltamashShaikh commented Dec 4, 2024

Description:

Added an option to retain the case of campaign parameter values via SystemSetting
Fixes: #PG-2343, #27

Review

@sgiehl
Copy link
Member

sgiehl commented Dec 4, 2024

@AltamashShaikh It might be better to use a solution as I described here: #65 (comment)
The problem with your solution is, that it might slow down tracking, as it needs to read the system setting for every single tracking request to check if the setting is enabled or disabled.
It could also be an idea to use a config flag instead of a system setting. That way we could even allow to easily configure that per site.

Copy link
Contributor

@snake14 snake14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Worked as expected when tested, including migration 👍

@AltamashShaikh
Copy link
Contributor Author

@AltamashShaikh It might be better to use a solution as I described here: #65 (comment) The problem with your solution is, that it might slow down tracking, as it needs to read the system setting for every single tracking request to check if the setting is enabled or disabled. It could also be an idea to use a config flag instead of a system setting. That way we could even allow to easily configure that per site.

@sgiehl Changed to change the case during archiving, can you check if this look good to you ?

Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some suggestions for possible improvements. Besides that the approach looks fine that way 👍

Updates/5.1.0.php Outdated Show resolved Hide resolved
lang/en.json Outdated Show resolved Hide resolved
lang/en.json Outdated Show resolved Hide resolved
Copy link
Contributor

@snake14 snake14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I like that it does the processing during archiving. I confirmed that I could invalidate and archive and see the setting change reflected in the report 👍

@AltamashShaikh AltamashShaikh merged commit 2adeb49 into 5.x-dev Dec 6, 2024
6 checks passed
@AltamashShaikh AltamashShaikh deleted the PG-2343-retain-case-option branch December 6, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants