Difference between revisions of "User:Ch4zm/Hellmouth II/Wiki bot retrofit"

From Golly.Life Wiki
 
(23 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
* pkg/summaries/
 
* pkg/summaries/
 +
* pkg/seasons/
 +
* pkg/graphs/
 
* pkg/winners/
 
* pkg/winners/
* pkg/seasons/
 
  
 
Next, look for all the imports of cup data classes that don't include Hellmouth II:
 
Next, look for all the imports of cup data classes that don't include Hellmouth II:
Line 46: Line 47:
 
We actually need to switch out some other navbox templates:
 
We actually need to switch out some other navbox templates:
 
* {{Tl|Navbox hellmouth ii history}} - not {{Tl|Navbox ii history}}
 
* {{Tl|Navbox hellmouth ii history}} - not {{Tl|Navbox ii history}}
 +
 +
and we need to make a few other templates:
 +
* {{Tl|HellmouthIIGame}} (analogous to {{Tl|KleinGame}} or {{Tl|Game}})
 +
 +
retrofit is finished, now we're doing a dry run:
 +
* [[Hellmouth II/Season 17]]
 +
 +
okay, time to run the real thing:
 +
* [[Hellmouth II/Season 1]]
 +
* [[Hellmouth II/Season 2]]
 +
* [[Hellmouth II/Season 3]]
 +
* [[Hellmouth II/Season 4]]
 +
* ...
 +
 +
and templates created:
 +
* {{Tl|HellmouthIIPostseasonBracket Season 1}}
 +
* {{Tl|HellmouthIIPostseasonBracket Season 2}}
 +
* {{Tl|HellmouthIIPostseasonBracket Season 3}}
 +
* {{Tl|HellmouthIIPostseasonBracket Season 4}}
 +
* ...
 +
 +
===graphs===
 +
 +
====summary graphs====
 +
 +
graph_driver bot driver, using pkg/graphs/summary_graphs.py
 +
 +
retrofitting cup_data.name to cup_data.spaces_name, except for filename
 +
 +
* [[:Image:HellmouthIISeason1_GA500.png]]
 +
* [[:Image:HellmouthIISeason1_RunsDiff.png]]
 +
* [[:Image:HellmouthIISeason2_GA500.png]]
 +
* [[:Image:HellmouthIISeason2_RunsDiff.png]]
 +
* [[:Image:HellmouthIISeason3_GA500.png]]
 +
* [[:Image:HellmouthIISeason3_RunsDiff.png]]
 +
* [[:Image:HellmouthIISeason4_GA500.png]]
 +
* [[:Image:HellmouthIISeason4_RunsDiff.png]]
 +
 +
====quantile graphs====
 +
 +
[[:File:HellmouthIISeasonsQuantileGraph AA.png]]
 +
 +
[[:File:HellmouthIISeasonsQuantileGraph SFBS.png]]
 +
 +
===postseason driver===
 +
 +
botdrivers/postseason_driver_ii.py script to create all the postseason pages...:
 +
 +
[[Hellmouth II/Season 12/Postseason]] page:
 +
* {{Tl|HellmouthIISeason12Post SeedTable}}
 +
* {{Tl|HellmouthIISeason12Post ColdLDS A}}
 +
* {{Tl|HellmouthIISeason12Post ColdLDS B}}
 +
* {{Tl|HellmouthIISeason12Post HotLDS A}}
 +
* {{Tl|HellmouthIISeason12Post HotLDS B}}
 +
* {{Tl|HellmouthIISeason12Post ColdLCS}}
 +
* {{Tl|HellmouthIISeason12Post HotLCS}}
 +
* {{Tl|HellmouthIISeason12Post CupSeries}}
 +
 +
[[Hellmouth II/Season 17/Postseason]] page:
 +
* {{Tl|HellmouthIISeason17Post SeedTable}}
 +
* {{Tl|HellmouthIISeason17Post ColdLDS A}}
 +
* {{Tl|HellmouthIISeason17Post ColdLDS B}}
 +
* {{Tl|HellmouthIISeason17Post HotLDS A}}
 +
* {{Tl|HellmouthIISeason17Post HotLDS B}}
 +
* {{Tl|HellmouthIISeason17Post ColdLCS}}
 +
* {{Tl|HellmouthIISeason17Post HotLCS}}
 +
* {{Tl|HellmouthIISeason17Post CupSeries}}
 +
 +
===winner driver===
 +
 +
More replacement of cup_data.name to cup_data.spaces_name
 +
 +
* pkg/winner/title.py
 +
* pkg/winner/pennant.py
 +
* pkg/winner/champions.py
 +
 +
This one was a little more tricky, since template names use .name and text on the page/categories use .spaces_name
 +
 +
* {{Tl|HellmouthIICupColdFireTitleTable}}
 +
* {{Tl|HellmouthIICupColdWaterTitleTable}}
 +
* {{Tl|HellmouthIICupHotFireTitleTable}}
 +
* {{Tl|HellmouthIICupHotWaterTitleTable}}
 +
* {{Tl|HellmouthIICupColdPennantTable}}
 +
* {{Tl|HellmouthIICupHotPennantTable}}
 +
* {{Tl|HellmouthIICupChampionsTable}}
 +
 +
===records driver===
 +
 +
looking in pkg/records/
 +
 +
start with all_time_points:
 +
 +
* step 1 is retrofitting cup_data.name with cup_data.spaces_name
 +
* step 2 is adding all the Hellmouth II classes
 +
 +
next: all_time_ppg
 +
 +
...everything is done now.
 +
 +
{{Tl|HellmouthIICupRecords SingleSeason MostSeasonWins}}
 +
 +
{{Tl|HellmouthIICupRecords SingleSeason MostCupPoints}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime SeasonWins}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime DivisionPoints}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime ChampionshipPoints}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime CupPoints}}
 +
 +
{{Tl|HellmouthIICupRecords LongestSeasonGame}}
 +
 +
{{Tl|HellmouthIICupRecords LongestPostseasonGame}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime WinningStreaks}}
 +
 +
{{Tl|HellmouthIICupRecords AllTime LosingStreaks}}

Latest revision as of 23:52, 13 October 2023

Retrofit pkg modules

Where did we start?

  • pkg/summaries/
  • pkg/seasons/
  • pkg/graphs/
  • pkg/winners/

Next, look for all the imports of cup data classes that don't include Hellmouth II:

$ grep "from ..cup_data import HellmouthCup" pkg/* -r
  • pkg/crowns/
  • pkg/records/
  • (leave records for last...)

Botdrivers

crowns driver

crowns driver golly:

  • had to go through and update the crown data for each crown

the crown driver creates these templates, links here to spot-check:

had to go through each crown page and manually add a new Hellmouth II Cup section, and insert the two templates above

also had to go in and figure out exactly where to use "cup_data.name" versus "cup_data.spaces_name"

for example, Category:Hellmouth II Cup , not Category:HellmouthII Cup

season by season pages

going through and replacing cup_data.name with cup_data.spaces_name

found a reference to the following template:

We actually need to switch out some other navbox templates:

and we need to make a few other templates:

retrofit is finished, now we're doing a dry run:

okay, time to run the real thing:

and templates created:

graphs

summary graphs

graph_driver bot driver, using pkg/graphs/summary_graphs.py

retrofitting cup_data.name to cup_data.spaces_name, except for filename

quantile graphs

File:HellmouthIISeasonsQuantileGraph AA.png

File:HellmouthIISeasonsQuantileGraph SFBS.png

postseason driver

botdrivers/postseason_driver_ii.py script to create all the postseason pages...:

Hellmouth II/Season 12/Postseason page:

Hellmouth II/Season 17/Postseason page:

winner driver

More replacement of cup_data.name to cup_data.spaces_name

  • pkg/winner/title.py
  • pkg/winner/pennant.py
  • pkg/winner/champions.py

This one was a little more tricky, since template names use .name and text on the page/categories use .spaces_name

records driver

looking in pkg/records/

start with all_time_points:

  • step 1 is retrofitting cup_data.name with cup_data.spaces_name
  • step 2 is adding all the Hellmouth II classes

next: all_time_ppg

...everything is done now.

{{HellmouthIICupRecords SingleSeason MostSeasonWins}}

{{HellmouthIICupRecords SingleSeason MostCupPoints}}

{{HellmouthIICupRecords AllTime SeasonWins}}

{{HellmouthIICupRecords AllTime DivisionPoints}}

{{HellmouthIICupRecords AllTime ChampionshipPoints}}

{{HellmouthIICupRecords AllTime CupPoints}}

{{HellmouthIICupRecords LongestSeasonGame}}

{{HellmouthIICupRecords LongestPostseasonGame}}

{{HellmouthIICupRecords AllTime WinningStreaks}}

{{HellmouthIICupRecords AllTime LosingStreaks}}