Skip to content

Conversation

@VitorVieiraZ
Copy link

@VitorVieiraZ VitorVieiraZ commented Nov 11, 2024

Displays Monthly Contributos Error Dialog when creating a project or syncing in case of failure.

Resolves #643, Python-api-client update: MerginMaps/python-api-client#221

@VitorVieiraZ VitorVieiraZ force-pushed the enhancement/newProjectLimitHitDialog branch from 1f24f80 to b187b78 Compare November 12, 2024 20:41
@VitorVieiraZ VitorVieiraZ changed the title WIP - New Project Limit Hit Dialog New Project Limit Hit Dialog Nov 12, 2024
@VitorVieiraZ VitorVieiraZ self-assigned this Nov 13, 2024
@VitorVieiraZ VitorVieiraZ changed the title New Project Limit Hit Dialog New Monthly Contributors Error Dialog Nov 13, 2024
Copy link
Contributor

@ValentinBuira ValentinBuira left a comment

Choose a reason for hiding this comment

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

Just few things I am not quite sure to understand otherwise look good to me

I added few general tips feel free to ignore them and mark them as solved

Copy link
Contributor

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

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

Looking good on the plugin side, only some tiny comment. Feel free to squash and merge after addressing it!

Comment on lines +27 to +30
quota = self.server_response.get("contributors_quota", "#NA")
quota_text = (
f"You've reached the maximum number of active monthly contributors ({quota}) for your current subscription."
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just some nit picking - this might seem more friendly for users in case we have issues reading the quota

Suggested change
quota = self.server_response.get("contributors_quota", "#NA")
quota_text = (
f"You've reached the maximum number of active monthly contributors ({quota}) for your current subscription."
)
quota = self.server_response.get("contributors_quota", None)
quota_text = (
f"You've reached the maximum number of active monthly contributors {'(' + quota + ')' if quota else ''} for your current subscription."
)

@tomasMizera
Copy link
Contributor

Let's just bear in mind that we need a new Python-api-client version when releasing this one!

@tomasMizera tomasMizera added the dependencies Pull requests that update a dependency file label Nov 22, 2024
@tomasMizera tomasMizera added the requires dependency release Other dependencies must be released before this one label Nov 29, 2024
@tomasMizera
Copy link
Contributor

This work is not needed now with the recent changes

@tomasMizera tomasMizera deleted the enhancement/newProjectLimitHitDialog branch September 1, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file requires dependency release Other dependencies must be released before this one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show dialog when active contributors per month limit is hit [plugin + py-client]

4 participants