Pirate's Booty Updates from episodes tab
complete
Amrayu78
Fix pirates-booty page.
Update the above page so it does the following:
- Show title if a title has a new episode added with booty link via Episodes tab (last updated, not working)
- Show title if old pirate's booty episode status is updated (this is the old feature, this feature works already)
Fix advanced search.
Update search functionality so it works with both new Pirate's Booty on Episodes tab (<-this isn't working) and old pirate's booty episode status (<- this already works)
Amrayu78
complete
Amrayu78
Max Romanchenko: Here's the first task! Not super urgent, just whenever you have time. I will create new canny tickets and will assign to you as I finish writing them up.
Max Romanchenko
Amrayu78
Hi Duong, I'm done with it. This turned out to be quite tricky as it is logically impossible to query posts with the old PB logic and the new one. I had to add a new wpcf-pb-query field and update all existing Dramas and Specials that have either the old PB link or the new PB in Episodes (sorry, this broke the sorting by last modified date, as I updated Dramas and Specials in batch, but it was the only way to make it work correctly).
I've updated pages:
Please check.
Amrayu78
Max Romanchenko: Hi Max, everything looks good. Don't worry about last modified date, this will eventually be adjusted as I update it everyday anyway.
Can you explain what this new field does and the functionality? Just so I know.
Thanks again!
Max Romanchenko
Amrayu78 Hi Duong, sure! I can give you more details.
This new field performs one purpose - to find out if Drama or Special has a pirate's booty link (it doesn't matter in old or new logic). I wrote a code that automatically saves "1" if there is such a link and "" (empty) if there is no link. The code works both for frontend forms of adding/editing episodes (new logic) and for backend when editing drama or special. This field is needed for correct filtering of Advanced Search and Pirate's Booty pages.
Amrayu78
Max Romanchenko Thanks for explaning, I understand the functionality now.
Also I'm not sure if Pirate's Booty page is sorted by the most recently last updated date?
I added new episodes for the below titles (all dramas) yesterday and they aren't showing on the most recent page:
Believe E03
Re:Revenge E05
Shanai Shokeinin E04
Secret Doumei E06
Ghost Yankee E04
Snack Joshi ni Highball wo E06
25 ji, Akasaka de E04
Kare no iru Seikatsu E05
Sukina Otoko to Wakaretai E07
Tora ni Tsubasa E29
VR Ojisan no Hatsukoi E23
Max Romanchenko
Amrayu78 I see what you mean. The problem was that you add an episode, but the parent Drama doesn't change, so the Drama modification date stays the same. I added code that updates the Drama/Special date while adding/editing episodes. I also re-saved your Dramas (Believe, Re:Revenge and so on) , they're in the list now.
Check please.
Amrayu78
Max Romanchenko: Looks good! I think we can close out this bug. Thank you!