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

Record changes to advanced search options in UXActionLog #3521

Open
flodolo opened this issue Jan 10, 2025 · 2 comments
Open

Record changes to advanced search options in UXActionLog #3521

flodolo opened this issue Jan 10, 2025 · 2 comments
Labels
P3 Default, possibly shipping in the following two quarters search task

Comments

@flodolo
Copy link
Collaborator

flodolo commented Jan 10, 2025

Analyzing the log for #3503 is not particularly useful, because we have too much noise coming from bots.

As a first step, I think it would be enough to record an action when the user clicks "apply search options" in the dropdown, recording as metadata: locale, project, search_* parameters set to true.

This would give us a sense of which options are used, and how frequently.

Measuring how frequently the menu is used compared to the standard search doesn't seem useful, since the options persist once set.

@flodolo flodolo added the search label Jan 10, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Needs triage in Pontoon Roadmap Jan 10, 2025
@mathjazz mathjazz added task P3 Default, possibly shipping in the following two quarters labels Jan 13, 2025
@mathjazz mathjazz moved this from 🆕 Needs triage to 🔖 Ready in Pontoon Roadmap Jan 13, 2025
@flodolo
Copy link
Collaborator Author

flodolo commented Jan 15, 2025

Measuring how frequently the menu is used compared to the standard search doesn't seem useful, since the options persist once set.

Rethinking about this: maybe it makes sense to track how many searches are performed through the search field, and store as metadata the advanced search options, on top of the main filters (string statuses, extra filters). That would give us a better picture, but it would also be a lot more data.

As for the last point, maybe we need a retention policy for the UXActionLog (e.g. 2 years?).

@mathjazz
Copy link
Collaborator

mathjazz commented Jan 15, 2025

As for the last point, maybe we need a retention policy for the UXActionLog (e.g. 2 years?).

We could do something like this:
https://mozilla-pontoon.readthedocs.io/en/latest/admin/deployment.html#sync-log-retention

OTOH, the uxactionlog_uxactionlog table size is small:

public.insights_projectlocaleinsightssnapshot | 4197 MB
public.base_translation                       | 4137 MB
public.base_translationmemoryentry            | 2016 MB
public.notifications_notification             | 1498 MB
public.django_session                         | 1338 MB
public.actionlog_actionlog                    | 884 MB
public.insights_localeinsightssnapshot        | 227 MB
public.base_entity                            | 90 MB
public.uxactionlog_uxactionlog                | 54 MB
public.sync_projectsynclog                    | 52 MB
public.base_translatedresource                | 51 MB
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Default, possibly shipping in the following two quarters search task
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants