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

From Golly.Life Wiki
(Created page with "==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 incl...")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Retrofit pkg modules==
+
==pkg==
  
Where did we start?
+
===cup data class===
  
* pkg/summaries/
+
* already getting complicated... we're going to have to figure out the schedule change
* pkg/seasons/
+
* (going to implement that later today)
* pkg/graphs/
+
* cup data class is done
* pkg/winners/
 
  
Next, look for all the imports of cup data classes that don't include Star II:
+
===crown data class===
  
<pre>
+
* updating crown data information
$ grep "from ..cup_data import StarCup" pkg/* -r
+
* fixing/expanding imports
</pre>
+
* adding Star II to all Star crowns
 +
 
 +
===winners===
 +
 
 +
* black formatting first,
 +
* then adding in new classes,
 +
* and now we're done
 +
 
 +
===summaries===
 +
 
 +
* this dir had a couple of duplicates - same thing as in winners/
 +
* modified season by season bullet list summary classes
 +
* modified team season by season (which is... I guess... inserting the "Team X in the Y Cup" and the figures plus the graphs plus the summary templates??
 +
 
 +
===seasons===
 +
 
 +
* these classes assemble the season page, and the postseason page
 +
* straightforward, just... reading through all of this to remind myself
 +
* there is a lot going on here
 +
 
 +
===ranklist===
 +
 
 +
* lots of classes...
 +
* same as above, a lot of stuff to review but nothing much to change
 +
* just adding new classes
 +
 
 +
===graphs===
  
* pkg/crowns/
+
* only two classes in two files
* pkg/records/
+
* pretty straightforward
* (leave records for last...)
 
  
 +
===crowns===
  
 +
* nothing to do except update crown data (already done)
 +
* formatted with black
  
 +
===records===
  
 +
* updating all_time records
 +
* updating length
 +
* updating matchups
 +
* updating shutouts - this could use some improvement (game links)
 +
* updating single season records - 4 files, lots of classes, done
  
 +
==Mop Up==
  
 +
Find imports of star cup, check for star ii cup
  
 +
<pre>
 +
$ grep "from ..cup_data import StarCup" pkg/* -r
 +
</pre>
  
 
==Botdrivers==
 
==Botdrivers==
 +
 +
===records===
 +
 +
List of templates to spot check:
 +
 +
* {{Tl|StarIICupRecords SingleSeason MostSeasonWins}}
 +
* {{Tl|StarIICupRecords SingleSeason MostCupPoints}}
 +
* {{Tl|StarIICupRecords AllTime SeasonWins}}
 +
* {{Tl|StarIICupRecords AllTime DivisionPoints}}
 +
* {{Tl|StarIICupRecords AllTime ChampionshipPoints}}
 +
* {{Tl|StarIICupRecords AllTime CupPoints}}
 +
* {{Tl|StarIICupRecords LongestSeasonGame}}
 +
* {{Tl|StarIICupRecords LongestPostseasonGame}}
 +
* {{Tl|StarIICupRecords AllTime WinningStreaks}}
 +
* {{Tl|StarIICupRecords AllTime LosingStreaks}}
  
 
===crowns driver===
 
===crowns driver===
  
crowns driver golly:
+
crowns driver golly: the crown driver creates these templates, links here to spot-check:
* had to go through and update the crown data for each crown
 
 
 
the crown driver creates these templates, links here to spot-check:
 
* {{Tl|CactusCrownHellmouthIICupSeason}}
 
* {{Tl|CactusCrownHellmouthIICupPostseason}}
 
* {{Tl|JetstreamCrownHellmouthIICupSeason}}
 
* {{Tl|JetstreamCrownHellmouthIICupPostseason}}
 
  
had to go through each crown page and manually add a new Hellmouth II Cup section, and insert the two templates above
+
* {{Tl|CactusCrownStarIICupSeason}}
 +
* {{Tl|CactusCrownStarIICupPostseason}}
 +
* {{Tl|JetstreamCrownStarIICupSeason}}
 +
* {{Tl|JetstreamCrownStarIICupPostseason}}
  
also had to go in and figure out exactly where to use "cup_data.name" versus "cup_data.spaces_name"
+
had to go through each crown page and manually add a new Star II Cup section, and insert the two templates above
  
for example, [[:Category:Hellmouth II Cup]] , not [[:Category:HellmouthII Cup]]
+
ensure categories are [[:Category:Star II Cup]] and not [[:Category:StarII Cup]]
  
 
===season by season pages===
 
===season by season pages===

Latest revision as of 17:14, 11 November 2023

pkg

cup data class

  • already getting complicated... we're going to have to figure out the schedule change
  • (going to implement that later today)
  • cup data class is done

crown data class

  • updating crown data information
  • fixing/expanding imports
  • adding Star II to all Star crowns

winners

  • black formatting first,
  • then adding in new classes,
  • and now we're done

summaries

  • this dir had a couple of duplicates - same thing as in winners/
  • modified season by season bullet list summary classes
  • modified team season by season (which is... I guess... inserting the "Team X in the Y Cup" and the figures plus the graphs plus the summary templates??

seasons

  • these classes assemble the season page, and the postseason page
  • straightforward, just... reading through all of this to remind myself
  • there is a lot going on here

ranklist

  • lots of classes...
  • same as above, a lot of stuff to review but nothing much to change
  • just adding new classes

graphs

  • only two classes in two files
  • pretty straightforward

crowns

  • nothing to do except update crown data (already done)
  • formatted with black

records

  • updating all_time records
  • updating length
  • updating matchups
  • updating shutouts - this could use some improvement (game links)
  • updating single season records - 4 files, lots of classes, done

Mop Up

Find imports of star cup, check for star ii cup

$ grep "from ..cup_data import StarCup" pkg/* -r

Botdrivers

records

List of templates to spot check:

crowns driver

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

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

ensure categories are Category:Star II Cup and not Category:StarII 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}}