Skip to content

Commit

Permalink
fixed forking
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Feb 8, 2024
1 parent 211d1de commit 3ac1343
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,30 @@

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.

## [0.7.3] -- 2023-02-05
## [0.7.4] -- 2024-02-XX
- Fixed forking schema


## [0.7.3] -- 2024-02-08
- Fixed POP update
- Improved error handling in views API
- Added stats method to Namespace module
- Updated docs
- Added coverage


## [0.7.2] -- 2023-02-02
## [0.7.2] -- 2024-02-02
- Fixed Unique Constraint in the Views
- Fixed update project pop method
- Fixed bug in duplicating samples


## [0.7.1] -- 2023-01-22
## [0.7.1] -- 2024-01-22
- Fixed bug in Stars annotation
- SQL efficiency improvements
- Added sort by date in stared projects

## [0.7.0] -- 2023-01-17
## [0.7.0] -- 2024-01-17
- Added `pop` to project table and annotation model [#107](https://github.com/pepkit/pepdbagent/issues/107)
- Added `forked_from` feature [#73](https://github.com/pepkit/pepdbagent/issues/73)
- Switched to pydantic2 [#105](https://github.com/pepkit/pepdbagent/issues/105)
Expand Down
2 changes: 1 addition & 1 deletion pepdbagent/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.3"
__version__ = "0.7.4"
2 changes: 2 additions & 0 deletions pepdbagent/modules/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ def fork(
fork_prj.forked_from_id = original_prj.id
fork_prj.pop = original_prj.pop
fork_prj.submission_date = original_prj.submission_date
fork_prj.pep_schema = original_prj.pep_schema
fork_prj.description = description or original_prj.description

session.commit()
return None

0 comments on commit 3ac1343

Please sign in to comment.