Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Remove next_page column from pages table#792

Merged
lfdebrux merged 1 commit into
mainfrom
ldeb-remove-next-page-from-pages
Jul 9, 2025
Merged

Remove next_page column from pages table#792
lfdebrux merged 1 commit into
mainfrom
ldeb-remove-next-page-from-pages

Conversation

@lfdebrux
Copy link
Copy Markdown
Contributor

@lfdebrux lfdebrux commented Jul 9, 2025

What problem does this pull request solve?

This column hasn't been used since before we migrated from grape (see PR #116), when we migrated to grape we switched to using the acts_as_list gem and the position column instead (see commit e8cc03).

Let's remove this column now. Note that we do still need the next_page attribute in our JSON responses, as it used by consumers, but it is calculated by a method based on the acts_as_list code, we don't need it in our database.

The column was ignored in #791, so is now safe to actually remove the column.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Has all relevant documentation been updated?

This column hasn't been used since before we migrated from grape (see
PR #116), when we migrated to grape we switched to using the
acts_as_list gem and the position column instead (see commit e8cc03).

Let's remove this column now. Note that we do still need the `next_page`
attribute in our JSON responses, as it used by consumers, but it is
calculated by a method based on the acts_as_list code, we don't
need it in our database.
@lfdebrux lfdebrux force-pushed the ldeb-remove-next-page-from-pages branch from 16e06e1 to c9d2023 Compare July 9, 2025 11:51
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jul 9, 2025

@lfdebrux lfdebrux merged commit 7979aed into main Jul 9, 2025
4 checks passed
@lfdebrux lfdebrux deleted the ldeb-remove-next-page-from-pages branch July 9, 2025 13:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants