-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
test(Ash.DataLayer.Ets): add unit tests #93
test(Ash.DataLayer.Ets): add unit tests #93
Conversation
@TheFirstAvenger wow! I'll take a look now :) |
There is so much undocumented at the moment as I work on the elixirconf talk, so how far you got with this is very impressive, thanks so much! A filter is a keyword list, and it looks like this:
|
If you're interested, there are a lot of improvements that could be made to the ETS data layer, like translating filters into matchspecs as opposed to fetching and filtering at runtime. I also added an Let me know if you'd like to hop on a call some time :) |
6249f77
to
ac9acb5
Compare
@zachdaniel good to merge, 100% coverage on the Ets module. I'll take a look at the other stuff you mentioned as I have time. Looking forward to the ElixirConf talk! |
@@ -135,7 +135,7 @@ | |||
{Credo.Check.Warning.ExpensiveEmptyEnumCheck, []}, | |||
{Credo.Check.Warning.IExPry, []}, | |||
{Credo.Check.Warning.IoInspect, []}, | |||
{Credo.Check.Warning.LazyLogging, []}, |
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.
Are the changes to the .credo.exs
required for your changes to be valid?
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.
no, but those two are legacy checks that no longer apply and produce warnings in the logs if not disabled.
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.
Ah, good to know thanks!
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.
Unless they are necessary, we should remove the .credo.exs
changes from this PR.
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.
Looks great!
🚀 Thank you for your contribution! 🚀
Couldn't figure out how to create a Filter, so if you could point me in the right direction, I can add that to the PR.
Closes #51