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

Internal publishing service #1363

Merged
merged 3 commits into from
Nov 17, 2022
Merged

Internal publishing service #1363

merged 3 commits into from
Nov 17, 2022

Conversation

mvandenburgh
Copy link
Member

Refactors publishing into a service layer module.

@mvandenburgh
Copy link
Member Author

whoops I forgot to check if tests were passing before opening this...

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

One comment but overall looks good. The structure does bug me a bit (bouncing between the publish service and tasks files), but I'm not sure of a good way to address that.

dandiapi/api/services/publish/__init__.py Outdated Show resolved Hide resolved
@@ -654,8 +654,8 @@ def test_version_rest_publish_zarr(
f'/api/dandisets/{draft_version.dandiset.identifier}'
f'/versions/{draft_version.version}/publish/'
)
assert resp.status_code == 400
assert resp.json() == ['Cannot publish dandisets which contain zarrs']
assert resp.status_code == 403
Copy link
Contributor

@danlamanna danlamanna Nov 15, 2022

Choose a reason for hiding this comment

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

Just a reminder to back out this one change we discussed.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@mvandenburgh
Copy link
Member Author

The structure does bug me a bit (bouncing between the publish service and tasks files), but I'm not sure of a good way to address that.

Yeah I'm still not completely happy with how that turned out :(
Definitely open to suggestions if you think of any.

@mvandenburgh mvandenburgh added the internal Changes only affect the internal API label Nov 17, 2022
@mvandenburgh mvandenburgh merged commit f154654 into master Nov 17, 2022
@mvandenburgh mvandenburgh deleted the publish-service branch November 17, 2022 19:46
@dandibot
Copy link
Member

🚀 PR was released in v0.3.2 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants