-
Notifications
You must be signed in to change notification settings - Fork 234
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
WORLDSERVICE-37 - Delete FrontPage and all associated code [DNM] #12444
base: latest
Are you sure you want to change the base?
WORLDSERVICE-37 - Delete FrontPage and all associated code [DNM] #12444
Conversation
@@ -430,29 +383,18 @@ describe('ATIAnalytics params', () => { | |||
}), | |||
); | |||
}); | |||
|
|||
it('should not invoke buildPageATIUrl for an unmigrated page type with no atiData', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need another page type to be used and keep this test? What is unmigrated that is suitable here, and do we even need this test anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All page types have now been migrated. Ideally we would actually remove the support for ati + pageData (as it should now be coming from atiData), but that's a separate (and big!) piece of work - probably part of the Reverb migration work.
… same data is not present in the home page pagedata in the same way
@@ -443,7 +425,7 @@ describe('legacyAssetPageDataPath', () => { | |||
shouldNotMatchInvalidRoutes(invalidDataRoutes, legacyAssetPageDataPath); | |||
}); | |||
|
|||
describe('frontPage -> homePage migration', () => { | |||
describe('homepage regex on environments', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ukchina is included as a valid route for home page regex. We won't be merging this until the ukchina work is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've paused the merging for now so this won't be merged in this sprint.
|
||
sendDataFile(res, dataFilePath, next); | ||
}) | ||
.get(homePageDataPath, async ({ params }, res, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not use the home page data route any more right? In constructDataFilePath it uses the path /index.json, which we don't use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.bbc.com/mundo/index.json this is not our 404 page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusingly, we serve the file named index.json within data/mundo/homePage as the local homepage data route http://localhost:7080/mundo.json 🤯
src/server/index.test.jsx
Outdated
@@ -1106,11 +1106,6 @@ describe('Server', () => { | |||
}); | |||
|
|||
describe('for home pages', () => { | |||
it('should respond with JSON', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use json routes with home pages now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do on local though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the JSON routes are still used for the local fixture routes on dev
826a465
to
8579af6
Compare
|
||
sendDataFile(res, dataFilePath, next); | ||
}) | ||
.get(homePageDataPath, async ({ params }, res, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusingly, we serve the file named index.json within data/mundo/homePage as the local homepage data route http://localhost:7080/mundo.json 🤯
// '/persian.json', | ||
// '/serbian/cyr.json', | ||
// '/ukchina/trad.json', // work out if we need these data routes still. They work locally but not live |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it's a good question. I believe that they are now valid homepage routes, since we have removed the frontPage routing. Let's move these into another test for valid routes.
Should some of the content for the simorgh/src/app/components/Curation/index.tsx Line 141 in bb57d19
|
This whole Contains Line 21 in b1369ce
@karinathomasbbc any thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments aside, looks pretty good!
This is a naming thing unfortunately. Think this is still technically used on homepages, just has word |
Yes please. I created this script 5 years ago to generate the simorgh-release-info file & also to keep track of when we released things (as we were migrating off PAL). So this file / folder and all references can get in the 🗑️ 🔥 💣 💥 |
Could you rename all references in this PR, and with some careful timing, just update the toggle name in iSite when it's deployed? If I recall correctly, none of the services actually have the radio schedule on the front page at the moment, so I don't think they would be affected. |
Resolves JIRA https://jira.dev.bbc.co.uk/browse/WORLDSERVICE-37 and https://jira.dev.bbc.co.uk/browse/WORLDSERVICE-356
Overall changes
Notes
frontPageRadioSchedule
toggle tohomePageRadioSchedule
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines