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

Expose add_member_to_rank extrinsic #4778

Closed
wants to merge 1 commit into from

Conversation

mateo-moon
Copy link
Contributor

Fixes #262

First PR.

@mateo-moon mateo-moon requested a review from a team as a code owner June 12, 2024 17:05
Comment on lines +719 to +723
pub fn add_member_to_rank(
origin: OriginFor<T>,
who: AccountIdLookupOf<T>,
rank: Rank,
) -> DispatchResult {
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't we need a similar call in core-fellowship? Or will this somehow bypass that configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know. @ggwpez could you please take a look at PR and maybe help to answer this question. Thank you)

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 we should have only one in the core-fellowship pallet. Similar to the induct function there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ggwpez few questions:

  1. Does it make sense to make another call similar to promote?
  2. Maybe it's better to close Fellowship: Expose add_member_to_rank #262 if the issue task is no longer valid?

Copy link
Contributor

Choose a reason for hiding this comment

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

The task is definitely valid, it just does not prescribe a solution.

A promote_to function could also be useful for people already inducted but where it makes sense for some reason to promote them over several ranks.

Copy link
Contributor Author

@mateo-moon mateo-moon Jun 15, 2024

Choose a reason for hiding this comment

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

The task is definitely valid, it just does not prescribe a solution.

A promote_to function could also be useful for people already inducted but where it makes sense for some reason to promote them over several ranks.

But this violate the rule of mainefest 4.2.3: "...associated rank is incremented by one". I suppose that it is not possible to increment rank more than 1 at a time. Or am i missing something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Two things:

One, the manifesto is from the Tech Fellowship. It is not the only collective (see, e.g., the Ambassador collective, which actually requires promoting members by 3 steps). If the Fellowship never wants someone promoted by more than one rank at a time they will need to configure things as such.

Two, we use origins to control access to privileged functions, and typically origins that correspond to public tracks will always outweigh any internal management origins.

What I mean is that rules like that are mainly arbitrary and can always be superseded by governance. You could also do a runtime upgrade or referendum to set_storage to get the same effect. The goal of this task is to provide a transparent, non-footgun way of accomplishing this effect.

Things like manifestos and white papers are guiding principles but they shouldn't trump pragmatism. The JAM prize, which the Fellowship also agreed to steward, has conditions like automatic promotion to X rank for certain accomplishments. Sure, the manifesto has that clause and it can be upheld by the members and enforced by origin configuration, but there are obvious pragmatic shortfalls of the code in some circumstances that led to the creation of this feature request.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Jun 12, 2024

User @Mateorus, please sign the CLA here.

@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6451855

@mateo-moon mateo-moon force-pushed the oleg-plakida/#262 branch 2 times, most recently from c7e5a0c to 8c45ac3 Compare June 12, 2024 19:35
@joepetrowski
Copy link
Contributor

Hey @oleg-plakida , are you going to keep working on this?

@Mateorus
Copy link

Mateorus commented Jun 19, 2024 via email

github-merge-queue bot pushed a commit that referenced this pull request Jun 26, 2024
Add a `promote_fast` extrinsic to the `core-fellowship` pallet to allow
promotions that ignore the promotion cooldown. It comes with a new
`FastPromoteOrigin`.

Supersedes #4778

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: command-bot <>
@ggwpez
Copy link
Member

ggwpez commented Jul 1, 2024

Sorry this became a high-prio after fellows being accidentally demoted. Superseded by: #4877

@mateo-moon
Copy link
Contributor Author

mateo-moon commented Jul 1, 2024

Sorry this became a high-prio after fellows being accidentally demoted. Superseded by: #4877

Sure thing. I understand.

@bkchr
Copy link
Member

bkchr commented Jul 3, 2024

So we can close this?

@bkchr bkchr closed this Jul 3, 2024
@mateo-moon mateo-moon deleted the oleg-plakida/#262 branch July 3, 2024 20:38
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
Add a `promote_fast` extrinsic to the `core-fellowship` pallet to allow
promotions that ignore the promotion cooldown. It comes with a new
`FastPromoteOrigin`.

Supersedes paritytech#4778

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: command-bot <>
fellowship-merge-bot bot pushed a commit to polkadot-fellows/runtimes that referenced this pull request Aug 2, 2024
Add fast promotion tracks with 7 days (instead of 30 days) voting
period.
The tracks have a 50% turnout and 66% approval criteria. To be used in
combination with paritytech/polkadot-sdk#4778.

It could be that the 50% turnout is too much for tracks I and II, but
for III there are not so many fellows so we can expect them to all vote
IMHO.

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
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.

Fellowship: Expose add_member_to_rank
6 participants