Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We should change all instances of "office" in the codebase with "service" #1402

Closed
jacobdgm opened this issue Apr 9, 2024 · 0 comments · Fixed by #1582
Closed

We should change all instances of "office" in the codebase with "service" #1402

jacobdgm opened this issue Apr 9, 2024 · 0 comments · Fixed by #1582
Labels
maintainability places where we can make future developers' jobs easier priority: low

Comments

@jacobdgm
Copy link
Contributor

jacobdgm commented Apr 9, 2024

A follow-on to #1367 - at some point, it would be a good idea to go through the code base and change everything currently referring to "office" and "offices" -> "service"/"services"

In the long run, this will save developer time, both for on-boarding, but also for people not having to check whether any particular variable/property is called office or service.

This will necessitate a number of changes to our models - the Office model will need to be renamed Service and the .office property of BaseChant will need to be renamed .service.

@jacobdgm jacobdgm added priority: low maintainability places where we can make future developers' jobs easier labels Apr 9, 2024
lucasmarchd01 added a commit to lucasmarchd01/CantusDB that referenced this issue Aug 7, 2024
… use 'service' instead of 'office'.

- change all URL paths to use 'service/services'. DDMAL#1401
- create redirects to ensure backwards compatibility with old 'office/offices' URLs. DDMAL#1401
- update query parameters to use 'service' instead of 'office'. DDMAL#1401
- rename the Office model to Service. DDMAL#1402
- rename .office property of BaseChant to .service. DDMAL#1402
- change all instances of 'office' to 'service' in the codebase. DDMAL#1402
- update all references to 'office' to 'service' on the Django admin pages. DDMAL#1581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainability places where we can make future developers' jobs easier priority: low
Projects
None yet
1 participant