-
Notifications
You must be signed in to change notification settings - Fork 16
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
Codebase git mirroring #718
Open
sgfost
wants to merge
29
commits into
comses:main
Choose a base branch
from
sgfost:git-mirror
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e4a1d39
feat: add model for tracking codebase git mirror
sgfost 78133ea
feat: add git repo file system api
sgfost 9919e8c
test: add coverage for git repo api
sgfost d5aed53
feat: add citation.cff and LICENSE to archive packages and git repos
sgfost 578a01d
fix: only format/access license text when needed
sgfost f02b46b
feat(WIP): basic github mirroring
sgfost c364e67
fix: use proper default for integer env settings
sgfost 1b28eb6
fix: idempotency for actions in git fs api and github api
sgfost baf66c1
feat(WIP): add huey for async task processing
sgfost dfb41c8
refactor: use huey task for github mirroring
sgfost eadb6f7
feat: update github mirror on publish
sgfost 7b55d18
build: run huey consumer as a runit deamon in the server service
sgfost f4f4363
feat: better mirroring UI + repo name validation
sgfost 5d89cc5
refactor: scrap metadata transformers, generate cff from codemeta
sgfost 01e3616
feat: add feature page for github integration
sgfost 230decc
refactor: only make private repos when settings.DEBUG is True
sgfost 97f7e52
build: dynamically add vue apps to vite config
sgfost a5ce3b3
refactor: simplify gh mirroring task
sgfost 4bca99e
refactor: rename github integration app configs for clarity
sgfost 4446af3
refactor: minor adjustment to github integration UI
sgfost 17b0532
fix: indent/format codemeta.json
sgfost e6fd0d1
chore: append git mirroring migrations
sgfost ad57b42
refactor(WIP): codemeta generation to use codemeticulous
sgfost f2cfcea
feat: use release branches for codebase git repos
sgfost 8687193
feat: cache codemeta json string for quicker page loads
sgfost 40d5a47
feat: check for readme in docs to place in git repo root
sgfost c40198e
refactor: improved api for metadata building
sgfost 51328bd
fix: prevent double save for codebase and release
sgfost 0ecf5bd
refactor(WIP): build codebase/release metadata on save
sgfost File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django_redis import get_redis_connection | ||
from huey import RedisHuey | ||
|
||
|
||
class DjangoRedisHuey(RedisHuey): | ||
"""Huey subclass that uses the existing connection pool | ||
from the django-redis cache backend | ||
""" | ||
|
||
def __init__(self, *args, **kwargs): | ||
connection = get_redis_connection("default") | ||
kwargs["connection_pool"] = connection.connection_pool | ||
super().__init__(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
exec /code/manage.py run_huey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is this cleaner if we move to pathlib like the other file where you used iterdir()? e.g.,