Skip to content

Conversation

@32bitbradley
Copy link

No description provided.

omerijaz27 and others added 30 commits April 21, 2021 17:16
APP-93 Added nobanner support.
APP-92 Fixed the access_checker.py, warcserver.py
Added continuityutils.py
Modified the html_rewriter.py for continuity.
Modified rewriterapp.py to work with continuity.
Added rejex and continuity feature in wburl.py
Made access check lookups more efficient
omgoo and others added 30 commits November 3, 2022 16:21
substituion functionality already exists on a global level for matched
rules but this causes issues when rule sets conflict in the desired
outcome. This change enables setting regex substitution at the rule
level to avoid these conflicts.
feat: regex substitution on surt rules match
update from main, add rules fixes and /timeline/ url support
…tus codes and there are no results for that filter, PYWB will attempt to ditch your filter and just return the first 100 results it has for that URL.

So, by default PYWB will try to get all 2xx and 3xx results.  If none exist, it will then give you 100 4xx and 5xx results it has for that URL.

I've changed the logic to not do the extra return if filters are supplied to the query. I need this to be tested extensively and confirmed non-destructive before we merge.
If You run a filter against the live service to only show certain sta…
Merge from upstream pywb
I've added the base functionality in PyWB to control the different permutations of toggles:

# a single digit end_timestamp controls the timeline filters
# <empty> - show one capture per day, and hide redirects
# 1       - show one capture per day, and show redirects
# 2       - show all captures, and hide redirects
# 3       - show all captures, and show redirects

These utilise the current `end_timestamp` regex parameter of `WbUrl`'s `QUERY_REGEX`:
QUERY_REGEX = re.compile('^(?:([\w\-:]+)/)?(\d*)(timeline|[*-])(\d*)/?(.+)$')

This means that URLs with the various filters applied will have a single digit numeric suffix to "timeline", such as:

http://0.0.0.0:8080/ukgwa/timeline/www.gov.uk
http://0.0.0.0:8080/ukgwa/timeline1/www.gov.uk
http://0.0.0.0:8080/ukgwa/timeline2/www.gov.uk
http://0.0.0.0:8080/ukgwa/timeline3/www.gov.uk
chore: updates dependencies
Move Py3AMF from setup.py load_requirements to requirements.txt

---------

Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
)

This commit also adds a more complicated JSON test case that is
also in warcio.js to ensure parity.

Treat numbers like JavaScript's Number.prototype.toString() by
dropping decimal from floats if they represent whole number.
)

* Introduce UWSGI_MOUNT env var

* Add a note to the documentation.
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.