Skip to content

refactor(versioning): add ref to nodes - #161

Merged
oreenlivnicode merged 8 commits into
devfrom
refactor/ref-or-tag-in-nodes
Nov 30, 2023
Merged

refactor(versioning): add ref to nodes#161
oreenlivnicode merged 8 commits into
devfrom
refactor/ref-or-tag-in-nodes

Conversation

@oreenlivnicode

@oreenlivnicodeoreenlivnicode commented Nov 16, 2023

Copy link
Copy Markdown
Contributor

No need to review tests in this PR.
It is blocked by tests pr #160

@oreenlivnicodeoreenlivnicode left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to review tests.

Comment threadsrc/downloader/download.py Outdated
Comment threadsrc/downloader/download.py Outdated
Comment threadsrc/workflow_components/composite_action.py Outdated
Comment threadsrc/workflow_components/workflow.py Outdated
@oreenlivnicode

Copy link
Copy Markdown
ContributorAuthor

Searching for a workflow by its name and processing the 'name' field from the workflow data has a lot of overhead. It loops through all the workflows in the redis every time.

method. Would it be feasible to restrict the search to just the local directory instead?
In workflow.py on line 243, there is a line of code: if "workflow_run" in w.trigger.

Comment threadsrc/downloader/gh_api.py
Comment threadsrc/downloader/gh_api.py Outdated
Comment threadsrc/downloader/gh_api.py Outdated
Comment threadsrc/downloader/gh_api.py Outdated
Comment threadsrc/downloader/gh_api.py
Comment threadsrc/indexer/index.py Outdated
Comment threadsrc/indexer/index.py Outdated
Comment threadsrc/workflow_components/composite_action.py
Comment threadsrc/workflow_components/workflow.py Outdated
Comment threadsrc/workflow_components/dependency.py
Comment threadsrc/workflow_components/workflow.py

@elad-ptichaelad-pticha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG! Left some comments for readability.

Base automatically changed from tests/tests-for-ref-in-nodes to devNovember 19, 2023 13:35
Support versioning in gh_api
Add versioning to redis
Use ref_pointers hash
Index using ref_pointers
Change workflow_download_hitory to consist workflow paths instead of repos
Add support for tags and refs in nodes
Add commit sha resolution login to gh_api
Add utils module to indexer
Download and Index seems to work
Not passing tests.
Unit tests passing
Calculate uses property of objects with absolute path
Add unit tests for dependency
Support multiple refs for nodes.
Add get_workflow and get_action.
Check in index if node exists with its full name (commit_sha)
Add push_graph function to neo4j_graph, which pushes and not merges.
Rename push_graph to merge_graph.
Update integration tests snapshots.
Document push_object and merge_object
Revert tests_init.py
Rename gh_api functions get_download_url_for_composite_action
@oreenlivnicode
oreenlivnicodeforce-pushed the refactor/ref-or-tag-in-nodes branch 2 times, most recently from 71cb2b4 to 839e22eCompareNovember 30, 2023 14:06
Update function docs.
Add utils functions
@oreenlivnicode
oreenlivnicodeforce-pushed the refactor/ref-or-tag-in-nodes branch from 839e22e to 91e19c4CompareNovember 30, 2023 14:11
@oreenlivnicode
oreenlivnicode merged commit 9ba8a20 into devNov 30, 2023
@oreenlivnicode
oreenlivnicode deleted the refactor/ref-or-tag-in-nodes branch November 30, 2023 14:13
oreenlivnicode added a commit that referenced this pull request Dec 31, 2023
* refactor:
Support versioning in gh_api
Add versioning to redis
Use ref_pointers hash
Index using ref_pointers
Change workflow_download_hitory to consist workflow paths instead of repos
* Refactor + Feat:
Add support for tags and refs in nodes
Add commit sha resolution login to gh_api
Add utils module to indexer
Download and Index seems to work
Not passing tests.
* Tests:
Unit tests passing
* Refactor:
Calculate uses property of objects with absolute path
* Refactor + Tests:
Add unit tests for dependency
Support multiple refs for nodes.
Add get_workflow and get_action.
Check in index if node exists with its full name (commit_sha)
Add push_graph function to neo4j_graph, which pushes and not merges.
Rename push_graph to merge_graph.
Update integration tests snapshots.
* Docs + Tests:
Document push_object and merge_object
Revert tests_init.py
Rename gh_api functions get_download_url_for_composite_action
* Chore: PR tasks
* Chore:
Update function docs.
Add utils functions
Sign up for freeto 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.

2 participants

@oreenlivnicode@elad-pticha