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

Bugfix/misc changelog fixes #154

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open

Bugfix/misc changelog fixes #154

wants to merge 19 commits into from

Conversation

Surxe
Copy link
Contributor

@Surxe Surxe commented Dec 22, 2024

  • Some tags in tags.py were reordered just to change some examples from {{PageRef|Crate|alt_name=crate}}s to {{PageRef|Crate|alt_name=crates}}. While it doesn't really change anything, it does help readability, and improves consistency with ordering in the several lists in tags.py.
  • Empty changelog lines no longer skipped. This allows the spacing to be setup properly immediately on changelog pages, without humans needing to revise the spacing.
  • Latest changelog from 12-21-2024 included in input-data.
  • Now avoids hyperlinking to [[Other]] just because its the default tag
  • Removed the "HeroLab " tags, its now just "" tag. The changelogs are able to be sectioned off by hero lab and non-herolabs now so these extra tags are no longer needed.
  • Each config in changelog_configs now has a sequence_id that starts at 0 for each day, designating multiple patches on the same day. This is also used for adding frontfacing_date_id in the format May 3, 2024 and May 3, 2024-1 which will be the patch names we use on the wiki.

Parsed data in deadlock-data PR

Changes examples like {{PageRef|Crate|alt_name=crate}}s to {{PageRef|Crate|alt_name=crates}}, minorly improving readability
@Surxe Surxe added the bug Something isn't working label Dec 22, 2024
@Surxe Surxe requested a review from hassayag December 22, 2024 05:56
@Surxe Surxe changed the title Bugfix/tag reordering Bugfix/misc changelog fixes Dec 22, 2024
We still want to remap tags to self.default_tag for standardization, but we don't want to link to the default tag as its not going to function as a tag you filter down to
@Surxe Surxe marked this pull request as draft December 22, 2024 20:39
@Surxe Surxe marked this pull request as ready for review December 27, 2024 01:08
@Surxe
Copy link
Contributor Author

Surxe commented Dec 27, 2024

Converted it to a draft earlier while I added some other minor corrections, its back to ready for review now

Copy link
Member

@hassayag hassayag left a comment

Choose a reason for hiding this comment

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

Left comments on the deadlock data PR as well

'link': None,
'is_hero_lab': True,
'is_hero_lab': is_hero_lab,
Copy link
Member

Choose a reason for hiding this comment

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

is_hero_lab is always true, does it need to be a variable?

Comment on lines +278 to +281
'sequence_id': sequence_id,
'frontfacing_date_id': frontfacing_date_id(date, sequence_id, is_hero_lab),
'link': entry.link,
'is_hero_lab': False,
'is_hero_lab': is_hero_lab,
Copy link
Member

Choose a reason for hiding this comment

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

with changes to the shape of the config, we also need to change the type definition. Ideally this should throw an error on runtime? But I'm not that experienced with python types

@@ -32,7 +32,7 @@ def run(self, version, logs):
changelog_out = []

for line in changelog_lines:
if line is None or line == '':
if line is None or line == '==':
Copy link
Member

Choose a reason for hiding this comment

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

I thought the changelog json files were to just cover specific changelog pages, such as for individual Heroes, Items etc. I think trying to have it also handle full patch notes is going to become difficult.

We are probably better off leaving those pages to be manual, as they also use extra bits of formatting, such as headings, nested bullets, etc.

if raw_changelog_id not in self.changelog_configs:
self.changelog_configs[raw_changelog_id] = {
'forum_id': None,
'date': date,
'sequence_id': sequence_id,
'frontfacing_date_id': frontfacing_date_id(date, sequence_id, is_hero_lab),
Copy link
Member

Choose a reason for hiding this comment

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

I think label is a simpler name for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants