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

Image RPC #625

Merged
merged 3 commits into from Apr 4, 2020
Merged

Image RPC #625

merged 3 commits into from Apr 4, 2020

Conversation

paskal
Copy link
Sponsor Collaborator

@paskal paskal commented Mar 22, 2020

Fix #572. Relies on merging #623 and #628 first.

@paskal paskal added the backend label Mar 22, 2020
Repository owner deleted a comment from golangcibot Mar 23, 2020
backend/_example/memory_store/accessor/image.go Outdated Show resolved Hide resolved
backend/_example/memory_store/accessor/image.go Outdated Show resolved Hide resolved
backend/app/rest/api/rest_private.go Outdated Show resolved Hide resolved
backend/app/store/image/remote_store.go Outdated Show resolved Hide resolved
backend/_example/memory_store/go.mod Show resolved Hide resolved
@paskal paskal marked this pull request as ready for review March 24, 2020 01:08
@umputun
Copy link
Owner

umputun commented Apr 3, 2020

pls resolve conflicts

@paskal
Copy link
Sponsor Collaborator Author

paskal commented Apr 3, 2020

I have some problems with saving and loading an image from memory store: it's not decoded from base64 on the load for some reason and I haven't figured out how to fix it yet.
I saw the same problem with the previous implementation but somehow fixed it then.
I'll write when I'll be able to fix it, in the meantime feel free to look into it if you can.

@paskal
Copy link
Sponsor Collaborator Author

paskal commented Apr 3, 2020

Found and resolved the problem: had missing decoding of the input string on save input.

- add proper formatting to Readme instructions
- fix docker-compose yaml
- add Enabled flag to admin storage, as without it I saw following error on trying to post a comment:
  ```
  mem_store.r42    | 2020/04/03 15:53:52.433 [INFO]  {logger/logger.go:120 logger.(*Middleware).Handler.func1.1} POST - /cmd - 172.20.0.3 - 200 (25) - 126.8µs - {"method":"admin.enabled","params":"remark","id":29}
  remark42         | 2020/04/03 15:53:52.434 [WARN]  {rest/httperrors.go:85 rest.SendErrorJSON} can't save comment - failed to prepare comment: can't get secret for site remark: site remark disabled - 500 (0) - dev_user/dev_user - /api/v1/comment - [rest/api/rest_private.go:121 api.(*private).createCommentCtrl]
  ```
  Flag was originally added 106c018
Copy link
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

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

LGTM

@umputun umputun merged commit 106218d into umputun:master Apr 4, 2020
@paskal paskal deleted the image-rpc branch April 4, 2020 19:07
@umputun umputun added this to the v1.6 milestone Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remote (rpc) implementation of image.store
2 participants