question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CHG rename professor display name

See original GitHub issue

The Course model has both professor and professor_for_course. The professor column seems to only be the name of the professor while professor_for_course is a one-to-many relationship with ProfessorForCourse model. So professor looks redundant and should be removed. However, removing this column seems to be not easy as we need to:

  • Change all the occurrences in the code that directly access this column
  • Do a database migration on the production server, which as far as I know can only be done by @wabscale

There’s a trick for the first change. After removing professor column we can write a professor property in Course that returns the value professor column originally contains. This way we don’t have to change all the occurrences in the code.

The reason I don’t do a PR immediately is because I don’t know if there’re other side effects that I haven’t considered yet. So please let me know you thoughts @wabscale .

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
wabscalecommented, Jul 6, 2021

No worries. This is not mission critical right now. Take all the time you need. Thanks for all your contributions, it is much appreciated.

1reaction
AlpacaMaxcommented, Jul 6, 2021

Thanks for assigning this to me. I’ll probably work on it later this week as I’ve been busy with my own stuff. Also I need to check out how alembic works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clever Portal: Display Names
Click on the student's display name in the top-right corner · From the dropdown, select Change display name · Enter the desired display...
Read more >
Change your My Directory Listing : TechWeb - Boston University
How to change your display name: · Please go to the My Directory Listing website here. · Make sure you have a personal...
Read more >
how to change class teacher's name in an existing team?
If you want to change the display name, yo need to contact your IT admin to help you, they need login to Microsoft...
Read more >
How to change your Active Directory display name
This page describes how to change your display name in Active Directory if you are staff/faculty. This change will appear in any service ......
Read more >
LSUMail: Update Display Name - GROK Knowledge Base
To Change your Display Name (Faculty / Staff / Student Worker): · 1. Log into Workday. · 2. Click the Personal Information worklet....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found