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

prepare rama-ua for UA profiles, that can be used for UA Emulation (client-side) #399

Merged
merged 52 commits into from
Mar 2, 2025

Conversation

GlenDC
Copy link
Member

@GlenDC GlenDC commented Jan 20, 2025

To do in a follow up PR:

as to make room for also adding the profile types
@GlenDC GlenDC self-assigned this Jan 20, 2025
GlenDC added 28 commits January 21, 2025 15:15
next steps:

- add unit tests
- refactor rama-fp to make use of this
- add storage trait in rama-fp
- store data in postgres for rama-fp (@fly.io)
- expose data in website
- test & iterate
- ship

embedding profiles automatically via a script
into rama-ua we'll do in a follow-up PR
next up... db.. again again
this provider will be used by the layer logic to select a UA based on the given ctx
which also allows someone else to implent their own logic
can be useful so one doesn't require two layers
if there is no use of the user agent outside of emulating
so far all seems to be without any bugs found so far,
still good to have these tests to prevent mistakes in future
fixed bug regarding preserve UA opt-in flag, thx unit test
and make sure that we respect accept encoding value,
as to make that kind of difficulty easier to handle
turns out to be different as well
unrelated from the PR but seems like I kinda got into a refactor dfrift,
whoops
decompression will no longer happen in case
the client req had a compatible encoding with the response content-encoding
@GlenDC GlenDC marked this pull request as ready for review March 2, 2025 09:53
@GlenDC GlenDC merged commit d258cc0 into main Mar 2, 2025
34 checks passed
@GlenDC GlenDC deleted the feat/issue-20-ua-profiles branch March 2, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant