WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
392 stars 631 forks source link

Query Fix: remove dependency on depreciated revision table #5998

Open EmmanuelEmp opened 1 month ago

EmmanuelEmp commented 1 month ago

What this PR Does

Notable Changes

Expected Data Output

Before

Old Dashboard View

(Prior Data Fields):

After

New Dashboard View

(Updated Data Fields):

Note: The individual_references_count field has been removed from the data output with the new stats depending on the users articles.

ragesoss commented 1 month ago

Please include before/after screenshots to demonstrate the UI changes associated with this PR.

EmmanuelEmp commented 1 month ago

@ragesoss , Okay I'd update this PR with the UI changes

EmmanuelEmp commented 1 month ago

Hello @ragesoss, I'd like you to please revisit this PR as I've included the before/after screenshots demonstrating the UI changes.

ragesoss commented 1 month ago

Please test your changes locally before pushing them.

EmmanuelEmp commented 1 month ago

Some test scripts associated with the user profile pages are resulting in check failures.

I would look into the tests also.

EmmanuelEmp commented 1 month ago

@ragesoss, I've tested locally, identified bugs, and fixed them. However, a test appears to fail since the function relies on data from the revision table. Kindly review.

the failing test:

image

Image of the dashboard now(statistics):

image

ragesoss commented 1 month ago

In that case, you'll need to adjust the test appropriately.

EmmanuelEmp commented 1 month ago

Okay, I'd do that.