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

fix: cellline_materials add index and created_by column #2353

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

headri
Copy link
Contributor

@headri headri commented Feb 26, 2025

Added Index on (name, source) to cellline_materials
Add column created_by to cellline_materials
Allow change only to creator

@headri headri requested review from PiTrem and JanCBrammer February 26, 2025 10:06
@headri headri changed the title added index on (name, source) in cellline_materials fix: cellline_materials add index and create by column Feb 26, 2025
@headri headri changed the title fix: cellline_materials add index and create by column fix: cellline_materials add index and created_by column Feb 26, 2025
@headri headri force-pushed the 261-cell-line-material-controls branch from 6b21093 to 1ef11e4 Compare February 27, 2025 13:17
@headri headri force-pushed the 261-cell-line-material-controls branch from 1ef11e4 to 5d32e53 Compare February 28, 2025 08:40
Copy link

LCOV of commit 5d32e53 during Continuous Integration #4540

Summary coverage rate:
  lines......: 67.0% (15494 of 23124 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@headri headri marked this pull request as ready for review February 28, 2025 09:29
Copy link

LCOV of commit a427fc3 during Continuous Integration #4541

Summary coverage rate:
  lines......: 67.0% (15492 of 23124 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

];
const { item } = this.props;
const { currentUser } = UserStore.getState();
if (item.created_by == null) {
Copy link
Collaborator

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()?

Copy link
Contributor Author

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.

@headri headri requested a review from PiTrem March 11, 2025 08:43
PiTrem added a commit that referenced this pull request Mar 11, 2025
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
PiTrem added a commit that referenced this pull request Mar 12, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants