-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Solution: Storage Adapter #313
Conversation
@c-rack Do you have any idea how to capture logs in a tests |
@maennchen no idea, sorry |
@c-rack I'm going to ask around then. |
@maennchen Hi! Have you tried |
@barthez I tried using it, but I need the created values and capture_log returns the logs and not those values. (I need to pass them to the return of the setup.) Do you know a way around that? |
I don't know another way around it than sending a message to self: capture_log(fn ->
{:ok, broadcaster} =
start_supervised(
{ExecutionBroadcaster, {__MODULE__, producer, TestStorage, TestScheduler}}
)
send(self(), {:boardcaster, broadcaster})
end)
broadcaster =
receive do
{:boardcaster, result} -> result
end |
I haven’t thought of that. I don’t really like the solution, but it is way better than a jamed test log. I’ll change that. |
8cecd57
to
5a9b00b
Compare
@barthez I added this little module to capture the logs: https://github.com/c-rack/quantum-elixir/pull/313/files#diff-de2bf243c30ea309362a8386c83982a7R1 |
Looks nice. Maybe |
We'd have to write a proposal to the Mailing List. Creating PR's directly is not always appreciated. |
@c-rack I have one thing I really dislike about this PR. If we continue to add more storage adapters, we're soon going to have a lot of optional dependencies. (Which could cause problems even for people which do not want to use an adapter.) I would much rather split them up in multiple repositories & packages. Would you agree to create a GitHub Orga where we could put multiple libraries together? That way we could create a separate repo for every adapter and still have them all in one place. EDIT: I would also make the effort and migrate all the stuff if you agree. |
@maennchen Sure, I agree. I have created https://github.com/quantum-elixir orga and invited you as owner. It is great to see this project evolving. We should be open to everyone to contribute to this project under the C4 process and invite contributors to join the team. Feel free to migrate this project to the new orga as you like. |
Cool! Thank you. I‘ll figure out the details of the migration tomorrow. |
Ok. We should agree on a naming schema for the repos in that orga. Maybe |
I agree. Do I have owner rights on that repo so that I can move it? (I know that I have them in the orga, but here I don‘t know.) I‘ll transfer the image to the orga, rename to quantum-core. After that we should fork it back here so that the url still works. After that we should create a new release pointing to the new urls. In the forked back repo here we should update the readme with a notice that the repo has been moved. After all that is done, I‘ll extract the storage adapter into its own repo. |
@maennchen just looked and found no option to give you owner permissions on this repo, but I can do the transfer. One thing regarding the naming: if we rename the project and fork back, the URLs will still break. So maybe it is better to keep the project name as it is, ok? |
@c-rack You can always rename a repository. I would do it like this:
When you're done I'll go and change the links in the This way we should break no urls and have everything named correctly. |
@maennchen transfer completed, fork is already renamed and I've added you as collaborator for the README changes. |
@pyatkov I removed your changes and put them into this repo: https://github.com/quantum-elixir/quantum-storage-ets I will stabilize the code and add tests. After that we should be able to release the new API and the ets storage package. |
Pull Request Test Coverage Report for Build 775
💛 - Coveralls |
@c-rack Would it be ok to mark this module as "experimental" and not adhere to the semantic versioning as we do with the rest of the library. (Only until it is stabilized) |
@maennchen that would be ok, yes |
@c-rack Great! Then I'm ready to release it into the wild I think. |
PS: I'm adding documentation as soon as it is stable. |
Great :) |
Based on #317, merge that PR first.Partial Implementation of #240
This PR is currently only to track changes, do not merge until it is proven to be working with an actual storage implementation.