Skip to content

Fix: Edit previous votes bug failling to load all photos and resolve performance issue#394

Open
ademolaomosanya wants to merge 6 commits intohatnote:masterfrom
ademolaomosanya:fix/issue-322-edit-votes
Open

Fix: Edit previous votes bug failling to load all photos and resolve performance issue#394
ademolaomosanya wants to merge 6 commits intohatnote:masterfrom
ademolaomosanya:fix/issue-322-edit-votes

Conversation

@ademolaomosanya
Copy link

This pr fixes #322

Backend - 50 per page default, count=0 returns all (up to 10k), safe count/offset parsing
Frontend - 50 per page with Previous/Next buttons for yesno/rating; ranking loads all in chunks
VoteEdit- loadPage, goPrevPage/goNextPage, lazy loading
i18n- pagination labels (Previous, Next, Page {0})
BEFORE
-no of edits displayed (15)
Screenshot 2026-02-28 at 12 48 40

ScreenRecording2026-02-28at12 48 09-ezgif com-video-to-gif-converter

AFTER
-all edits votes returned with 50 per page
ScreenRecording2026-02-28at12 43 58-ezgif com-speed

@ademolaomosanya ademolaomosanya changed the title Fix/issue 322 edit votes Fix: Edit previous votes bug failling to load all photos and resolve performance issue Feb 28, 2026
ademolaomosanya and others added 5 commits March 11, 2026 05:18
Made-with: Cursor
…note#406)

- Add orchestrating workflow (pr.yml) with path-based change detection
  using dorny/paths-filter, concurrency cancellation, and ci-complete
  sentinel job for branch protection

- Add backend test workflow: builds Docker image, runs pytest on
  test_web_basic.py, verifies module imports

- Add frontend lint workflow: prettier --check, eslint, vite build

- Add pytest to dockerfile

- Add lint:check and format:check scripts to frontend/package.json

- Fix 6 pre-existing ESLint errors:
  - Remove unused defineComponent import (ViewCampaign.vue)
  - Remove unused downloadReviews function (RoundInfo.vue)
  - Remove unused props assignment (RoundView.vue)
  - Add eslint-disable for multi-word component name (Vote.vue)
  - Remove unused getCommonsImageUrl imports (VoteEdit.vue, VoteRanking.vue)

- Remove pdb.set_trace() calls from test_web_basic.py (would hang CI)

- Run prettier --write across frontend/src/ to establish baseline

- Delete dead .travis.yml (Python 2.7, Travis CI abandoned)
@ademolaomosanya ademolaomosanya force-pushed the fix/issue-322-edit-votes branch from 9d387a7 to c206d34 Compare March 11, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Edit votes' loads very slowly or does not display images at all

3 participants