Difference between revisions of "Pathfinder Wiki:Community portal/New Server"
DesignerThan (talk | contribs) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
|- | |- | ||
| 2020.12.02 || 2020.12.04 || [[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) || [[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) || [[#Import new changes of the "old" Wiki]] || What does it need to make DPL compatible with MW 1.35? | | 2020.12.02 || 2020.12.04 || [[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) || [[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) || [[#Import new changes of the "old" Wiki]] || What does it need to make DPL compatible with MW 1.35? | ||
+ | |- | ||
+ | | 2020.12.03|| Done (12.05) || [[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) || [[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) || [[#Delete all the pages in Honor_Requirement category]] || These files are still around, but not needed. | ||
+ | |- | ||
+ | |2020.12.04 || || [[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) || [[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) || [[#Create Landing Pages]] || I've made a start on this. Feedback is welcome! | ||
|} | |} | ||
Line 33: | Line 37: | ||
:The DPL-Wikimedia Extension misses some important features so I deactivated it as we probably won't be able to use it and it is not possible to activate both DPL3 and DPL-Wikimedia. | :The DPL-Wikimedia Extension misses some important features so I deactivated it as we probably won't be able to use it and it is not possible to activate both DPL3 and DPL-Wikimedia. | ||
:Jomegat: if you want to try somethings, go for it... you have SSH-Access. --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 18:10, 3 December 2020 (CET) | :Jomegat: if you want to try somethings, go for it... you have SSH-Access. --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 18:10, 3 December 2020 (CET) | ||
+ | ::I activated debugging and had a look into the log file... There are also Errors from other extensions. I think it will get funny to do that upgrade and restructuring. :D --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 22:59, 3 December 2020 (CET) | ||
=== Import new changes of the "old" Wiki === | === Import new changes of the "old" Wiki === | ||
Line 56: | Line 61: | ||
:::::Done. Look for 20201202wiki.sql.gz --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 05:17, 3 December 2020 (CET) | :::::Done. Look for 20201202wiki.sql.gz --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 05:17, 3 December 2020 (CET) | ||
Import is done. --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 11:16, 3 December 2020 (CET) | Import is done. --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 11:16, 3 December 2020 (CET) | ||
+ | |||
+ | ===Delete all the pages in Honor_Requirement category=== | ||
+ | This task is to delete all the pages in [[:Category:Honor Requirement]]. Those pages hold individual requirements for every honor, and there are 14K+ of them. I'm using pywikibot to take them out. --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 00:39, 4 December 2020 (CET) | ||
+ | :The bot is about halfway done deleting all the individual requirements pages. It nailed this one too since I accidentally added it to the category. Oops! --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 21:56, 4 December 2020 (CET) | ||
+ | ::The bot finished deleting all the old requirements pages. --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 00:57, 6 December 2020 (CET) | ||
+ | |||
+ | ===Create Landing Pages=== | ||
+ | I've created [[Template:Honor_overview]] which I think will be about the only thing on an honor lahnding page. I also create two landing pages just to try things out: [[AY Honor/Aboriginal Lore]] and [[AY Honor/Abseiling]]. | ||
+ | |||
+ | The idea is to capture the honor metadata in the overview page/template instead of in the answer key/honor_desc template. The honor_desc template can extract metadata from the honor_overview template using DPL magic - when we're ready to do that. | ||
+ | |||
+ | The overview template is admittedly ugly. Again, I look to others to make it look nice, as that's not really in my wheelhouse. | ||
+ | |||
+ | It has been instructive so far. I realized that the development stage (the stage parameter of the honor_desc template) should stay with the honor_desc template. That data is related to the answer key, and not to the honor itself. I had also briefly included prep_time and inst_time in the overview template, but those are definitely going to be related to the lesson plans, and ''not'' to the honor itself. | ||
+ | |||
+ | I'll work on making a bot to create all the landing pages, extracting the metadata from honor_desc. Once that's done, we can go in and add the overview text and pick out the "significant requirement". Right now that only supports a single requirement, which is going to be problematic - see [[AY Honor/Abseiling]] to know why (hint: the most difficult requirement has subrequirements). But I think I found a solution! We should be able to include everything from the beginning of one section to the end of another: | ||
+ | :<nowiki>{{#lst:Requirements_Page|reqN|reqNd}}</nowiki> | ||
+ | I'll try that out in a bit. --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 02:30, 5 December 2020 (CET) | ||
+ | :The <nowiki>{{#lst:Requirements_Page|reqN|reqNd}}</nowiki> approach could have worked, but it would not have been easy because the translation tags are spewed out as plain text instead of being interpreted. Instead, I found that we can simulate arrays of template arguments using the Loops and Variables extensions. Got that working now. |
Latest revision as of 23:57, 5 December 2020
The purpose of this page
This page is used to discuess occuring issues and problems on this Server, because MW was upgraded and the Installation will be used to develop the new AY-Honors structure.
To/Do's
Just add a row to the table below and fill in the needed data. The person who works at a specific task writes it's signature into the specific field.
Creation Date | Due Date | Author's Signature | Who is responsible | Link to the issue | Task Description |
---|---|---|---|---|---|
2020.12.02 | ASAP | DesignerThan (talk) | ??? | #Extension: DynamicPageList | Write down the needed features of the Template:Honor index to the issue. |
2020.12.02 | 2021.??.?? | DesignerThan (talk) | ??? | #Extension: DynamicPageList | Search for solutions for the missing features. |
2020.12.02 | ASAP | DesignerThan (talk) | DesignerThan (talk) | #Import new changes of the "old" Wiki | Search for a solution to import changes without overwritting created stuff. |
2020.12.02 | 2020.12.04 | DesignerThan (talk) | DesignerThan (talk) | #Import new changes of the "old" Wiki | What does it need to make DPL compatible with MW 1.35? |
2020.12.03 | Done (12.05) | Jomegat (talk) | Jomegat (talk) | #Delete all the pages in Honor_Requirement category | These files are still around, but not needed. |
2020.12.04 | Jomegat (talk) | Jomegat (talk) | #Create Landing Pages | I've made a start on this. Feedback is welcome! |
Issues
Extension: DynamicPageList
The used extension is not supporting MW Version 1.35 which we are using now. So I have installed the DynamicPageList (Wikimedia) extension Wikipedia is using. The problem is, that it lags important features like a table view or the include feature. I have tried to edit the Template:Honor index, and there I found the missing features. Maybe someone who created it, can tell me the needed features beside the DPL-Functionality and we can use other extension to replace this functionality or alter it, so it supports the things we need. --DesignerThan (talk) 18:20, 2 December 2020 (CET)
- DPL is central to how much of the wiki works. As you've already noted, it's used for generating the honor indices. It's also used in Template:RequirementsHeader (which may not be part of the backup this wiki was made from). We might need to look at what it would take to make that DPL compatible with MW 1.35. Another option would be to downgrade to MW 1.32 and hope that DPL will catch up. --Jomegat (talk) 22:19, 2 December 2020 (CET)
- Yeah I know. The thing is, DPL works, but not with all of the features. Include for instance doesn't work for now, but there are other extensions which can do that. So maybe we can combine some extensions for it to work. But to do that I would need to know which features are missing at the moment.
- As you said we may be able to make it compatible, but that will need some time I guess. I will see tomorrow. --DesignerThan (talk) 23:06, 2 December 2020 (CET)
- I just had a look at the extension's page and it seems that it has just became compatible ... I am very confused right now ... but the Incompatible-Template is still in the source and the Issue is still open ... man I am confused. I will have a look at it tomorrow. I'm way too tired at the moment. --DesignerThan (talk) 23:06, 2 December 2020 (CET)
I mean the first argument 'include' in the Template:Honor index. Or the 'table' argument. Those are not supported by the Wikimedia extension.
The thing is, that I am pretty sure that I have seen the incompatible banner at both alternatives but now it is only shown on the DPL-third party one. But the Template gets called the wrong way in DPL3. So now I don't know if it is compatible or not ... I will research that today. --DesignerThan (talk) 09:34, 3 December 2020 (CET)
- So I have now looked into that ... I am pretty sure that DPL-third-party is not working, because as soon as I activate it, the wiki offers me a file with 0KB to download. DPL3 seems to work kind of to see on the page AY_Honors, maybe someone with some more knowledge about the DPL-Extensions has an idea. As I found out, the DPL3 Extension has also a issue with the MW 1.35, described here maybe everyone can leave a comment there so the developers get active again.
- That article seems to describe the problem both extensions have.
- The DPL-Wikimedia Extension misses some important features so I deactivated it as we probably won't be able to use it and it is not possible to activate both DPL3 and DPL-Wikimedia.
- Jomegat: if you want to try somethings, go for it... you have SSH-Access. --DesignerThan (talk) 18:10, 3 December 2020 (CET)
- I activated debugging and had a look into the log file... There are also Errors from other extensions. I think it will get funny to do that upgrade and restructuring. :D --DesignerThan (talk) 22:59, 3 December 2020 (CET)
Import new changes of the "old" Wiki
We need to create a backup of the old/original wiki and import it here. The issue is, we would probably overwrite this page. Wouldn't be a problem, because we can copy it before. But maybe I can find a solution to import the backup without lossing the changes here. Would be handy, because we will need that as soon as we finished with the development to find and import the changes of the original wiki into that, which occured during the development time.
I am thinking of, that we are doing all the restructuring from now on in this development environment and not twice, here and in the origninal. So after the development process we can just copy that one over the your server and have everything toghether. But for that we will need to copy the changes done in the original to that one, what could get interessting... --DesignerThan (talk) 18:54, 2 December 2020 (CET)
- You should install pywikibot. I've been using its pagefromfile.py script to create the requirements pages. If you want to preserve a file (but not its edit history), all you'd need to do it create a text file that looks like this:
- {{-start-}}</nowiki>
- '''Title of Page'''
- ...contents of page...
- {{-stop-}}
- The contents of the page is just what you cut and paste from the edit area if you edit the page.
- When you have a new hammer, the whole world looks like a nail. It would be better to export the changes from here to a file and then import them after copying the database. I'm not 100% convinced it's as simple as dumping sql from the old wiki into the new though, as database schema changes would also get replaced. You might have to downgrade to 1.23 again. --Jomegat (talk) 22:40, 2 December 2020 (CET)
- Okay, that would be an option for moving the changes after our work into this wiki.
- Importing the dump from tonight won't be that big of a problem, because MW has an update script for the database. But before importing your dump I will just copy the edits I did here today, that aren't that many, and insert them afterwards. Just hit me as soon as you SCP'd me the DB-Backup. --DesignerThan (talk) 23:06, 2 December 2020 (CET)
Import is done. --DesignerThan (talk) 11:16, 3 December 2020 (CET)
Delete all the pages in Honor_Requirement category
This task is to delete all the pages in Category:Honor Requirement. Those pages hold individual requirements for every honor, and there are 14K+ of them. I'm using pywikibot to take them out. --Jomegat (talk) 00:39, 4 December 2020 (CET)
- The bot is about halfway done deleting all the individual requirements pages. It nailed this one too since I accidentally added it to the category. Oops! --Jomegat (talk) 21:56, 4 December 2020 (CET)
Create Landing Pages
I've created Template:Honor_overview which I think will be about the only thing on an honor lahnding page. I also create two landing pages just to try things out: AY Honor/Aboriginal Lore and AY Honor/Abseiling.
The idea is to capture the honor metadata in the overview page/template instead of in the answer key/honor_desc template. The honor_desc template can extract metadata from the honor_overview template using DPL magic - when we're ready to do that.
The overview template is admittedly ugly. Again, I look to others to make it look nice, as that's not really in my wheelhouse.
It has been instructive so far. I realized that the development stage (the stage parameter of the honor_desc template) should stay with the honor_desc template. That data is related to the answer key, and not to the honor itself. I had also briefly included prep_time and inst_time in the overview template, but those are definitely going to be related to the lesson plans, and not to the honor itself.
I'll work on making a bot to create all the landing pages, extracting the metadata from honor_desc. Once that's done, we can go in and add the overview text and pick out the "significant requirement". Right now that only supports a single requirement, which is going to be problematic - see AY Honor/Abseiling to know why (hint: the most difficult requirement has subrequirements). But I think I found a solution! We should be able to include everything from the beginning of one section to the end of another:
- {{#lst:Requirements_Page|reqN|reqNd}}
I'll try that out in a bit. --Jomegat (talk) 02:30, 5 December 2020 (CET)
- The {{#lst:Requirements_Page|reqN|reqNd}} approach could have worked, but it would not have been easy because the translation tags are spewed out as plain text instead of being interpreted. Instead, I found that we can simulate arrays of template arguments using the Loops and Variables extensions. Got that working now.