-
Notifications
You must be signed in to change notification settings - Fork 76
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
Don't force persons to be assigned to all defined entities #667
Comments
As an additional bit of context for other readers: this is in the context of https://github.com/ServiceInnovationLab/openfisca-aotearoa, with these entities. |
Thank you so much @jacob88 for this detailed issue! It looks indeed like all entities types that exist in a tax and benefit system have to be declared in a situation. I believe OpenFisca-France uses scenarios to overcome this limitation, making inferences and dynamically creating entities that have not been filled. I'm wondering about the possibility of adding some metadata to entities declaration defining if they are optional, or how they could be inferred. |
Thanks @jacob88 for reporting this! Adding the additional titled property was indeed the way to solve that. I though understand the frustration of having to specify a titled property when you don't care about that.
Yep. This is the consequences of two principles:
Yes and no. It has been historically the case, and it is still for some use-cases (micro-simulation with data) but scenarios are not used in the new Web API. So there is no special treatment for France: users also have to specify all their entities (and that's worse, because France as 3 group entities).
Yep, functionally, that seems the way to go. But that's not clear who should be in charge of these inferences.
|
Awesome, thanks for the insights @fpagnoux! I feel we're making progress 👍 I suggest we keep accumulating use cases and challenges regarding relaxing principle 1 here until we feel we can create an RFC for changing it. |
For a use case in favor of relaxing principle 1:
|
You can also use that to link an individual to several jobs |
Input from @benjello about how this had been dealt with in a similar context: http://liam2.plan.be/documentation/0.12/links.html?highlight=links |
The limit of the current model is also problematic for Barcelona: from @jvalduvieco:
|
More input from @jvalduvieco:
|
I'm reopening this issue as there seems to be two different problems, 1. requiring people to be assigned to a group entity, and 2. allowing people to be assigned to several group entities, of whom only the former is solved. If you think we should rather split the issue, I'll happily do so. |
I'm indeed not so sure I understand why this issue, titled “Don't force persons to be assigned to all defined entities”, was not solved by #835 🤔 I believe that the issue reported by the OP could not happen anymore and has been solved. The discussion here might well give more context to the second feature you describe, but I believe it would be better to create its own issue with a specific, real-life example 🙂 Is it okay to close this issue now? |
Assuming it is okay to close the issue as explained above, cc @maukoquiroga. |
Hi there!
I really enjoy OpenFisca, but I recently encountered an issue.
Here is what I did:
Declared "Bob" in Persons without assigning "Bob" to a titled_property,
through the JSON web API.
Here is what I expected to happen:
I expected the API to return "200 OK" with the null field filled with the result
Here is what actually happened:
Here is data (or links to it) that can help you reproduce this issue:
Required an additional titled property.
Below works fine.
Context
I identify more as a:
(remove this line as well as all items in the list that don't fit your situation)
The text was updated successfully, but these errors were encountered: