Comments (9)
Nope, I think you blew this one out of the water 😀
from ash.
@zachdaniel Do you have thoughts on how you would test different versions of ash in the extension projects?
from ash.
I haven't really worked it out yet, especially considering that things are currently changing fast enough that it's unlikely for an extension to support more than one version of ash. As it stabilizes though, I'll need a better plan. Additionally, there are parts of ash that can't really be tested without testing against extensions (specifically against ash_postgres). Right now those things are just untested. If you have thoughts/ideas let me know and we can get the ball rolling on better tests in that regard. Things are stabilizing just about enough to warrant it I think.
from ash.
Ecto does something with environment variables to allow you to test ecto_sql against different versions of ecto, I will see if I can do something similar here.
from ash.
Also, as far as the Elixir/Erlang matrix:
Elixir:
v1.9 and below get the following:
== Compilation error in file test/actions/create_test.exs ==
** (BadFunctionError) expected a function, got: Ash.Dsl.Transformer
##[error] (elixir) lib/enum.ex:2338: anonymous fn/3 in Enum.sort_by/3
##[error] (stdlib) lists.erl:969: :lists.sort/2
##[error] (elixir) lib/enum.ex:2338: Enum.sort_by/3
##[error] (ash) lib/ash/dsl/transformer.ex:100: Ash.Dsl.Transformer.sort/1
##[error] (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
##[error] (stdlib) erl_eval.erl:449: :erl_eval.expr/5
##[error] (stdlib) erl_eval.erl:126: :erl_eval.exprs/5
##[error] (stdlib) erl_eval.erl:888: :erl_eval.expr_list/6
##[error] (stdlib) erl_eval.erl:411: :erl_eval.expr/5
##[error] (stdlib) erl_eval.erl:126: :erl_eval.exprs/5
##[error] (ash) /home/runner/work/ash/ash/test/actions/create_test.exs:5: Ash.Resource.__before_compile__/1
##[error] (elixir) lib/code.ex:767: Code.require_file/2
##[error] (elixir) lib/kernel/parallel_compiler.ex:211: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/6
And OTP earlier than 22 complain about persistent_term
not being available, leaving Elixir 1.10, with OTP 23 and 22 as the only two viable options with the current codebase.
from ash.
One annoying thing: there are a bunch of repos in the ash organization, so we probably want to extend this and the last few changes to those repos. Don't feel obligated to do that though. I can periodically check to make sure those other (and less important aside from ash_postgres) repos are up to date with core.
from ash.
persistent_term is non-negotiable, but the sort function can absolutely be reworked.
from ash.
Speaking of that sort, I think transformer sorting is actually broken/bad, so I need to figure out a more efficient way to do it. Its a pretty bad bit of code :)
from ash.
@zachdaniel with those 5 PRs in, is there anything else you would like to see to wrap up this ticket?
from ash.
Related Issues (20)
- `PubSub` notifier should load any data it needs
- Anonymous function calculations are inconsistent with module calculations HOT 1
- many_to_many manage_relationship peculiarities HOT 8
- Remove `aggregates` and `calculations` passed into parse filters HOT 1
- Better documentation for custom validations HOT 1
- `%Ash.NotSelected{}` HOT 5
- Bug in the example code for Idiomatic Actions HOT 3
- bug: read action get_by don't recognize relationship attributes
- Rename `define_for` in code interface. HOT 13
- Multiple relationship-related authorizations in a single policy raises error `key :read_action not found in: nil` HOT 2
- proposal: Allow configuring pubsub notifiers for update actions to only send notifications when the record has changed
- Policy Breakdown can't handle FieldPolicies HOT 1
- Bypass for FieldPolicies HOT 3
- Do not select field if field policies fail HOT 1
- Some `:read` flow steps are erroring after update to Ash 2.11.3 HOT 9
- Map types (and the Keyword type I'm working on) that have fields specified need to load/dump those fields
- Ash.Changeset.manage_relationship raises Invalid Input when the identity/key is a ci_string HOT 3
- Cast values to the proper type and use `Ash.Type.equal?` HOT 2
- Add support for creating upsert conditionals
- default_limit option in keyset pagination is ignored HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ash.