probo icon indicating copy to clipboard operation
probo copied to clipboard

Rename peoples to people

Open SachaProbo opened this issue 1 year ago • 3 comments

Rename people/peoples to person/people

SachaProbo avatar Sep 12 '25 12:09 SachaProbo

hi @SachaProbo, could you provide more details on what exactly needs to be renamed and in which parts of the project?

Yashxp1 avatar Sep 15 '25 19:09 Yashxp1

Hello,

In the code (and in the PG database), we currently use people as the singular and peoples as the plural. However, people is already plural (while peoples has a different meaning).

We should switch to using person as the singular and people as the plural.

We’ll need to update the following:

  • Rename the table (peoples) via a migration
  • Use the new table name in PG query
  • Update the coredata/probo/types packages in Go
  • Adjust the GraphQL queries and mutations (breaking API changes are acceptable for now)
  • Update the front end (the correct names are already displayed to users)

SachaProbo avatar Sep 16 '25 07:09 SachaProbo

Search the entire codebase for the term “peoples”. Replace it with “people” or “person” depending on context: Use “person” for singular entities (e.g., person_id, Person struct). Use “people” for plural collections (e.g., people_list, /api/people). Update: API routes and request/response fields Database table or column names Backend structs, variables, and functions Frontend components and labels Run tests and migrations if database schema changes. This ensures consistent and grammatically correct naming across all layers of the project.

bhaskar-mb avatar Oct 15 '25 17:10 bhaskar-mb