-
Notifications
You must be signed in to change notification settings - Fork 36
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
Exclude contact cards (and other non-editable blocks) from HIX #3281
base: develop
Are you sure you want to change the base?
Conversation
I fear that this might change the hix scores of pages again. The last time we did this our service team had quite a nightmare dealing with municipalities that suddenly could not translate their pages anymore because the hix score was too low. |
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 don't have a lot of context about this piece of code. I hope @david-venhoff knows more about it. For what I can see this piece of code looks good and the logic itself makes sense, but I might not think of all possible side effects :/
That's a very valid concern. I'm not sure how else to progress though, tbh. Maybe passing Removing the divs in question without parsing the HTML is an entirely differnet can of worms. Frankly I don't think we have a choice but to risk slightly changing HIX scores :( (With prior testing still, of course) |
51c3185
to
7c9d876
Compare
7c9d876
to
88d84e1
Compare
I think we need @osmers to chime in on this 😅 |
@charludo can I already test this in the test cms? I would then just go through each page for a region and see how much the HIX-score changes, even without inserting contact cards. Though I think it would make sense to also test it with inserted contact cards just to make sure (bcs there municipalities will expect an increase in the HIX-score). |
Not really, no, since this is not merged yet :/ Contact Cards should definitely improve HIX compared to plain-text contact details though, yes. |
Could we merge it but possibly block/exclude it from the next release? Then Salua and me can test it :) |
It is also possible to test without merging by creating a branch that ends in -publish-dev-package: integreat-cms/.circleci/config.yml Lines 661 to 668 in 102b45f
|
Huh, I had no idea! The build was successfull, but I cannot dinf where I can actually access it 🤔 Do we have automated deploy for these? |
I think it will be deployed on the cms test server, when it updates the next time. I think there is also a way to update the test server manually, so that it runs the pr immediately |
Ohhhh so this will take this build just because it's the newest? But there's no way to switch between versions on the test server? |
Yeah, that is my understanding |
88d84e1
to
edd67bd
Compare
Short description
The contact cards introduced in #3169 have a severe negative impact on the HIX score. This PR excludes them from the HIX calculations.
Proposed changes
contenteditable="false"
.Side effects
html.text_content()
was previously only used to check for empty pages. For convenience, I have changed the code to send the result of this operation to textlab instead of the raw HTML - but I am uncertain if there has been a decision against this in the past when you added the code in question @david-venhoff - are my changes OK?Resolved issues
Fixes: #3268
Pull Request Review Guidelines