-
Notifications
You must be signed in to change notification settings - Fork 2
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
Broken internal links priority #528
Conversation
This PR will trigger no release when merged. |
test/audits/internal-links.test.js
Outdated
@@ -26,11 +26,13 @@ const AUDIT_RESULT_DATA = [ | |||
url_to: 'https://www.example.com/article/dogs/breeds/choosing-an-irish-setter', | |||
url_from: 'https://www.example.com/article/dogs/just-for-fun/dogs-good-for-men-13-manly-masculine-dog-breeds', | |||
traffic_domain: 100, | |||
priority: 0, |
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.
in the implementation, priority
is set to either high
, medium
, or low
; but why it does end up as an integer here?
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.
This is a mistake - leftover code from initial implementation of priorities. I will take care of this while implementing test cases which is not done yet. thx
…into broken-internal-links-priority
…into broken-internal-links-priority
🎉 This PR is included in version 1.45.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Related Issues
https://jira.corp.adobe.com/browse/SITES-27242
Linked PR: adobe/spacecat-shared#491
Test cases coming soon.
✅ Data accuracy: I have validated the results. The new results match old/existing results. Hence this implementation is accurate.
This PR changes RUM event from
404
to404
andnavigate
. It also removes associated logic to filter links from same sources since it's now done from the RUM client itself.It also adds logic to calculate priorities based on page views for each link in following way (as discussed in Figma prototype).
Priority: High: top 25%, Medium: next 25%, Low: bottom 50%
**Note: I believe this logic can be improved for much more correctness. I will be discussing with team about this logic and will come up with more optimized logic. **
Sample data input
Sample output