Repository navigation
feat: auto-update Data:LatestUpdate.json on new updates - #466
Open
MonsterDomosed wants to merge 1 commit into
Open
MonsterDomosed wants to merge 1 commit into
MonsterDomosed wants to merge 1 commit into
Conversation
Updates Data:LatestUpdate.json on the wiki with the date of the newest update changelog whenever the wiki uploader runs, so the wiki's "Latest update" excerpt stays current without manual edits. The date is derived from the generated changelogs/wiki/*.txt files, reusing the existing changelog date helpers. The page is skipped when it already matches the latest date, and never moved backward if the wiki holds a newer date. It is also excluded from the "Missing file map" warning in _update_data_pages since it is handled separately.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates
Data:LatestUpdate.jsonon the wiki with the date of the newest update changelog whenever the wiki uploader runs, so the wiki's "Latest update" excerpt (Module:LatestUpdate) stays current without manual edits.Previously this page was maintained by hand, and every run logged
Missing file map for data page "LatestUpdate.json".Details
WikiUpload._update_latest_update_page()runs at the end ofrun(), alongside the other changelog-derived wiki mutations.changelogs/wiki/*.txtfiles, reusingchangelog_utils.sort_changelog_files/parse_changelog_date_from_id(the same helpers_update_latest_chainuses).Module:LatestUpdateschema:{ "latest_update": { "month": "October", "day": 16, "year": 2026 } }--dry_run_update_data_pagesnow skips this page with a trace log instead of the "Missing file map" warning, since it is handled separately.Testing
-1suffix) with same/new date, dry-run, data-page loop skip, and fullrun()integration.ruff check .andruff format --check .pass.Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data