-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aggregated rights report - correct implementation of Rights split #48
Comments
Option 2 is the one to go for! |
Step 1 - added the right_type to the $rights['contributions'] array |
Step 2 - updated the calculation to work out the percentage within the right type |
I have added a condition to the recursive part of step 1 a condition that only adds child contributions of the correct type. This is especially important as we have a sample track for each of the rights types. |
Looking at the functionality again looks like we can get away with only making a change to step 3 without updating 4 or needing 5.
|
Got a couple of test assets will use those to test the number but its looking good real good :) |
I have pushed the following changes:
|
@dahacouk I have almost finished the configurable right splits, what I need from you is a list of names and splits something Like: Those will be available in a dropdown but I have done it in such a way that you will be able to change the url to get a specific split not in the options so it will look like |
This is now live with test data see http://kendra_hub_v2.dev.local/content/stairway-heaven |
task "bottom of chart key sometimes gets cut off at bottom of screen see http://hub2.kendra.org/content/song-55" moved to its own issue #50 |
Initial requirements
The current 50/50 split is not accurate as in reality the function handles all contributions as equal.
This can cause confusion especially when we have more then two right types.
We have two options:
Changes to Rights split algorithm
The current algorithm process uses a four stage process the below are the changes needed to those steps plus one additional step.
What those changes do is use the four steps two work out the percentage within each of the right types and the extra steps to work the overall split using a newly supplied split.
The changes are as follows:
Array( [right type] => percent 0-100 }
was not needed:
4. Total each of the artists aggregated rights percentages.
5. Calculate the overall percentage according to a supplied split.
To do
Split the "Rights split" graph into two
Testing
We didnt get a chance to do much testing before going live but indications are that it is working corectly
The text was updated successfully, but these errors were encountered: