-
Notifications
You must be signed in to change notification settings - Fork 57
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
fix: cellline_materials add index and created_by column #2353
base: main
Are you sure you want to change the base?
Conversation
6b21093
to
1ef11e4
Compare
1ef11e4
to
5d32e53
Compare
LCOV of commit
|
LCOV of commit
|
app/javascript/src/apps/mydb/elements/details/cellLines/propertiesTab/GeneralProperties.js
Outdated
Show resolved
Hide resolved
]; | ||
const { item } = this.props; | ||
const { currentUser } = UserStore.getState(); | ||
if (item.created_by == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't this guard be removed if the cell line (item
) is instantiated with (created_by = ''
) in CellLine.buildEmpty()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Tested it and it doesn't work when creating celllines.
Squashed commit of the following: commit 44b54e8 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Tue Mar 11 08:13:08 2025 +0000 review findings commit a427fc3 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Fri Feb 28 09:28:10 2025 +0000 refactor: rubocop & typo commit 5d32e53 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Wed Feb 26 14:46:10 2025 +0000 feat: added column created_by and set access commit faf855e Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Wed Feb 26 10:04:43 2025 +0000 fix: tests because of index commit 03b432c Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Fri Feb 21 11:37:14 2025 +0000 added index on (name, source) in cellline_materials
Squashed commit of the following: commit 44b54e8 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Tue Mar 11 08:13:08 2025 +0000 review findings commit a427fc3 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Fri Feb 28 09:28:10 2025 +0000 refactor: rubocop & typo commit 5d32e53 Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Wed Feb 26 14:46:10 2025 +0000 feat: added column created_by and set access commit faf855e Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Wed Feb 26 10:04:43 2025 +0000 fix: tests because of index commit 03b432c Author: Adrian Herrmann <adrian.herrmann@kit.edu> Date: Fri Feb 21 11:37:14 2025 +0000 added index on (name, source) in cellline_materials
Added Index on (name, source) to cellline_materials
Add column created_by to cellline_materials
Allow change only to creator