n atta kusi adusei
n atta kusi adusei
This was partially discussed here https://github.com/luckyframework/avram/pull/596#discussion_r562928035. Nested save operations has some edge cases to work on. Maybe an issue should be created specifically for this (if it does not already...
I'm running into the same issue. If it helps, here a trace: ``` cast from Array(String) to String failed, at /path/to/lucille/spec/support/app/src/models/user.cr:20:3:31 (TypeCastError) from spec/support/app/src/models/user.cr:20:3 in 'extract_changes_from_params' from spec/support/app/src/operations/create_user.cr:1:1 in 'set_attributes'...
This seems to fix it: 1. Change `Avram::AddColumnAttributes#extract_changes_from_params` to: ```crystal private def extract_changes_from_params permitted_params.each do |key, value| {% for attribute in attributes %} set_{{ attribute[:name] }}_from_param(value.as(Array(String))) if key == {{...
https://github.com/luckyframework/avram/blob/9c8caecf052641d15dbe027e0cafb1741d8af33f/src/avram/add_column_attributes.cr#L24 This should probably change too, to return an array with a single element: ```crystal single_values = @params.nested(self.class.param_key).reject {|k,v| k.ends_with?("[]")}.transform_values { |value| [value] } ``` And, just a question, shouldn't...
Agreed! This should match with update operations that returns the record to the block whether or not the operation succeeds.
@confact This is how I do it: ```crystal client = ApiClient.new response = client.exec(Some::Action) client.headers("Cookie": response.headers["Set-Cookie"]) response = client.exec(Another::Action) ``` I set response cookies from the previous request as the...
> As long as you are not checking out connections explicitly the pool should be able to recover from temporary outages. From a cursory look at the code, the connection...
Oh, I must have missed that, then. I get `DB::ConnectionLost` regularly with multiple apps in staging. This happens when those apps haven't seen any interaction in a while. I use...
Shouldn't this be closed by #88?
My guess is you had?: ```crystal column : state = OrderState ``` Try the fully qualified name: ```crystal column : state = Order::OrderState #