Skip to content
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

Venue: add bid invitation to assignment configuration #2111

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

celestemartinez
Copy link
Member

Fixes #2079

scores_spec['value']['param']['default'][bid_invitation.id] = {
'weight': 1,
'default': 0,
'translate_map' : {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, I think we should store this mapping function somewhere so it is not repeated in the code.

What about storing it in the Bid Invitation content and then read it to set the score spec?

'Very Low': -1.0
}
}
score_spec[invitation.id] = invitation.content['scores_spec']['value']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melisabok I am worried any already created invitations would not have this value and this would give an error, and setting a default would mean we still have duplicated code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melisabok what do you think about this? I wonder the same thing, but it may not be a big issue if bidding isn't commonly used

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave this as it its, I didn't want to hav the translate_map duplicated in the code, that is why I suggested to store it in the invitation.content.

Sometimes a venue may want to use a different scale or bid labels so it would be nice this can be configure by themselves.

@enrubio enrubio merged commit 7724f57 into master Apr 25, 2024
1 check passed
@enrubio enrubio deleted the fix/add-bid-invitation branch April 25, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment Configuration: make sure the bid scores is present
3 participants