Skip to content

Add new board to TOML & improve the board logic #439

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

encukou
Copy link
Member

@encukou encukou commented May 14, 2025

No description provided.

@@ -1,6 +1,34 @@
# The Pyvec board members in time
# The current board is first, previous boards are listed in descending order
# Each member has a `name`, `github`, and optionally a `roles` array
#
# "start_on" should ideally be the date of the hand-over meeting
Copy link
Member

Choose a reason for hiding this comment

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

I think ideally it should be the same date as on justice.cz 🧑‍⚖️

Copy link
Member

@honzajavorek honzajavorek left a comment

Choose a reason for hiding this comment

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

I think we need to clarify what the date means exactly. I think it should be the one which marks the power exchange officially, because after this gets merged, the votes of the board are effective under grants.

But I don't remember how the court works and what date they consider as the power exchange. If we provide the date to them, and if the date we provide is the date of the hand-over meeting, then it's the same date and your sentence in the YAML is correct 😅

@encukou
Copy link
Member Author

encukou commented May 15, 2025

Makes sense!
Let's allow start_on to be missing, and add some text for that case.

(I plan to look at it next week.)

@honzajavorek
Copy link
Member

I'm unsure if the grants and boards scripts are ready to work with empty start_on. But you can add the board with # at the beginning of each line, and when we know the date, we can uncomment it, and it would have the same effect 😄 Or we can just wait for the court with this PR.

@honzajavorek
Copy link
Member

I'm unsure if the grants and boards scripts are ready to work with empty start_on.

That said, I think they should be ok with a future start_on, so if you really need this merged now, you can put the date somewhere in the future and when we know the correct date, we can fix it.

@encukou
Copy link
Member Author

encukou commented May 15, 2025

I'll adjust the scripts next week.

@encukou
Copy link
Member Author

encukou commented May 21, 2025

The elections page wants the vote date, not the start date of the board that's currently in power.
So, I've made "start_on" optional and added "voted_on" as well.

I also changed the ReST formatting for the table; hopefully it's now more readable.

Copy link
Member

@honzajavorek honzajavorek left a comment

Choose a reason for hiding this comment

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

Thanks for the code! I really like the different formatting of the table. I also like the new board being added to the TOML.

And I don't want to be a nuisance, but reading the diff, a question was popping up in my head and I couldn't get rid of it: Is adding a voted_on worth the added complexity we'll have to work around, test for, and maintain?

I think we should keep going with started_on and model the complicated world with this simple term. The page states that the official source of truth is justice.cz, so in fact we can have any date we like there. We can set it to the date of voting and once we know the official date of change, we can adjust it in a subsequent PR. I'd rather have the date slightly off for two months than to maintain two dates for the foreseeable future, document its meanings and burden the upcoming boards and maintainers with understanding the difference.

What do you think? I'm just a docs.pyvec.org gardener, and the operational docs should serve the board, so I feel really bad having so much comments about a single TOML change, I'm sorry for that 😞

members: list[BoardMember]

model_config = {"extra": "forbid", "frozen": True}

@classmethod
def make(cls, voted_on=None, start_on=None, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

This is first time I see a method like this called make, so I got confused what it does. Eventually I understood it's something I usually call create. I'm not strongly opinionated about this, just sharing that this was an effort for me to grasp, which might or might not mean anything.

@encukou encukou marked this pull request as draft May 26, 2025 06:52
@encukou
Copy link
Member Author

encukou commented May 26, 2025

The same question was popping up in my head :)

I'll change this on ~Wednesday again.
I'm thinking about keeping voted_on for the elections page, though.

@encukou
Copy link
Member Author

encukou commented Jun 11, 2025

started_on is needed for grants; voted_on is needed for scheduling votes. IMO, maintaining them in the TOML shouldn't be an issue.
I added has_started to the Pydantic model to simplify the logic (and typing).

@encukou
Copy link
Member Author

encukou commented Jun 11, 2025

And I copied dates from justice.cz :)

@encukou encukou marked this pull request as ready for review June 11, 2025 09:28
@encukou encukou changed the title Add new board to TOML Add new board to TOML & improve the board logic Jun 11, 2025
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.

2 participants