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

Update bug two #19

Merged
merged 34 commits into from
Nov 29, 2024
Merged

Update bug two #19

merged 34 commits into from
Nov 29, 2024

Conversation

jvfe
Copy link
Collaborator

@jvfe jvfe commented Oct 15, 2024

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

jvfe added 30 commits October 2, 2024 09:45
@jvfe jvfe marked this pull request as ready for review November 29, 2024 18:36
@jvfe jvfe merged commit 4e92fcf into third-review Nov 29, 2024
79 of 82 checks passed
jvfe added a commit that referenced this pull request Nov 29, 2024
* wip: Add bug two

* refact: Try defaulting to a dict

* fix: Dont allow remote to be unbound

* refact: Check if not equal to component type

* refact: Re-add isinstance dict

* fix: Remove mention of component_name

* refact: Add special case for strings following dicts

* test: Try removing branch from test case

* refact: Remove isinstance for str

* refact: Use dict only with get_comps out

* Revert "refact: Use dict only with get_comps out"

This reverts commit 7ebc6dc.

* refact: Check if content has subwfs

* refact: Always set current remote

* refact: Check sha before resetting current_repo

* refact: Do the negative test

* refact: Use another variable for remote

* refact: Simplify check

* refact: Expand check once again

* refact: Roll back to previous check

* fix: self.sha must not be none to reset to none

* Revert "fix: self.sha must not be none to reset to none"

This reverts commit 65aa1c4.

* Try removing the section entirely

* refact: Try moving check to reset

* refact: Remove unnecessary current_sha

* refact: Change check in get_comps

* refact: Set git remote beforehand

* refact: Change indent so previous check is the same

* refact: Remove current repo check

* Revert "refact: Remove current repo check"

This reverts commit a956e04.

* refact: Try using name list

* fix: Remove break in loop

* refactor: Always set current_repo

* fix: Check if name is in updated

* refactor: Remove unused sections and logs
jvfe added a commit that referenced this pull request Dec 4, 2024
* test: Add test for installing a module already installed from different org

* fix: Remove unnecessary install command

* test: Add test for updating cross-org subwfs

* fix: Change hash to sha

* fix: Add remote url

* refact: Create shared instance of subworkflowinstall

* test: to keep same named cross mods post subwf rm

* refact: Don't use sha for the alternative repo

* fix: Add else to sha check

* fix: Move check to cross-org stuff

* refact: Reverse check order

* test: Add update test (#19)

* wip: Add bug two

* refact: Try defaulting to a dict

* fix: Dont allow remote to be unbound

* refact: Check if not equal to component type

* refact: Re-add isinstance dict

* fix: Remove mention of component_name

* refact: Add special case for strings following dicts

* test: Try removing branch from test case

* refact: Remove isinstance for str

* refact: Use dict only with get_comps out

* Revert "refact: Use dict only with get_comps out"

This reverts commit 7ebc6dc.

* refact: Check if content has subwfs

* refact: Always set current remote

* refact: Check sha before resetting current_repo

* refact: Do the negative test

* refact: Use another variable for remote

* refact: Simplify check

* refact: Expand check once again

* refact: Roll back to previous check

* fix: self.sha must not be none to reset to none

* Revert "fix: self.sha must not be none to reset to none"

This reverts commit 65aa1c4.

* Try removing the section entirely

* refact: Try moving check to reset

* refact: Remove unnecessary current_sha

* refact: Change check in get_comps

* refact: Set git remote beforehand

* refact: Change indent so previous check is the same

* refact: Remove current repo check

* Revert "refact: Remove current repo check"

This reverts commit a956e04.

* refact: Try using name list

* fix: Remove break in loop

* refactor: Always set current_repo

* fix: Check if name is in updated

* refactor: Remove unused sections and logs

* test: Use the same subworkflow in all test cases

get_genome_annotation is not necessary, given we're using another
subworkflow for the other tests

* refact: Update cross_org remote to nf-core-test

* fix: Change remote name in install test

* refact: Remove none check from all_subworkflows

Co-authored-by: Matthieu Muffato <[email protected]>

* docs: Add hash comment

* refact: Use mod/subwf_name in both sections

* test: Check updated subwf content

---------

Co-authored-by: Matthieu Muffato <[email protected]>
@muffato muffato added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants