nischayn22 / PageQuality

A MediaWiki extension to monitor and improve Page Quality
MIT License
0 stars 1 forks source link

Save the specific blocked expression in the DB #23

Closed drorsnir closed 2 years ago

drorsnir commented 2 years ago

This would allow us one day to actually see a breakdown of usage.

You should also refrain from saving the highlight of the word in the "example" field; this is better done on the fly.

nischayn22 commented 2 years ago

Any reason why the breakdown cannot be generated on the fly?

Did you mean the example field shouldn't have the tags and it should be added on the fly? This would mean customizing the code used to display the page quality report for one type of scorer, my design was done in a way that each scorer has the logic for its own use case.

drorsnir commented 2 years ago

Ah, I see regarding the encapsulation - one way to solve that will be to also allow each scorer to override its display in the report, but there's no real need to go there. So no, don't stop saving the current example.

How can you generate a breakdown for all pages on the fly without saving the expression itself?

nischayn22 commented 2 years ago

I meant, we could do a quick run of one scorer for all the pages to generate the breakdown on the fly. Another approach would be to put a specific CSS class in the example and generate it from the examples.

drorsnir commented 2 years ago

I see. I'm not sure how fast this will work, considering it takes quite a while to run everything for every page - but let's postpone this for now.