substrate icon indicating copy to clipboard operation
substrate copied to clipboard

BREAKING: Rename Outer Enums

Open Szegoo opened this issue 3 years ago • 3 comments

Attempts to solve: #11736

Szegoo avatar Aug 05 '22 06:08 Szegoo

WIP

Szegoo avatar Aug 06 '22 08:08 Szegoo

Looks in the right direction so far!

kianenigma avatar Aug 08 '22 08:08 kianenigma

I have renamed the associated type to RuntimeEvent, also I have renamed the Events inside pallets to PalletEvent. I need to figure out why this is failing some CI checks(it seems like an error is not getting thrown when it should), but other than that I am probably finished with renaming the events. It would be now helpful to check if what I did is correct before I start renaming the Call enum.

CC: @KiChjang @kianenigma

Szegoo avatar Aug 09 '22 14:08 Szegoo

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741073

paritytech-cicd-pr avatar Aug 13 '22 07:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741074

paritytech-cicd-pr avatar Aug 13 '22 07:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741072

paritytech-cicd-pr avatar Aug 13 '22 07:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741113

paritytech-cicd-pr avatar Aug 13 '22 07:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741149

paritytech-cicd-pr avatar Aug 13 '22 07:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741185

paritytech-cicd-pr avatar Aug 13 '22 08:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741221

paritytech-cicd-pr avatar Aug 13 '22 08:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741265

paritytech-cicd-pr avatar Aug 13 '22 08:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741301

paritytech-cicd-pr avatar Aug 13 '22 08:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1741372

paritytech-cicd-pr avatar Aug 13 '22 09:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1742832

paritytech-cicd-pr avatar Aug 14 '22 13:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1742871

paritytech-cicd-pr avatar Aug 14 '22 14:08 paritytech-cicd-pr

The CI pipeline was cancelled due to failure one of the required jobs. The job name - test-linux-stable The job logs - https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1748815

paritytech-cicd-pr avatar Aug 16 '22 11:08 paritytech-cicd-pr

Looks really good! this is only refactoring the Event, right?

We need RuntimeCall and RutnimeOrigin as well. Should we do those separately or here?

Yes, this is only refactoring the Event for now. I will probably rename RuntimeCall and RuntimeOrigin in this PR.

Szegoo avatar Aug 19 '22 10:08 Szegoo

@kianenigma @KiChjang I believe that I am done with renaming the Events here. Maybe it would be better to make a separate PR for each rename, so could you please review this? I will look into resolving the errors in the companions.

Szegoo avatar Aug 22 '22 16:08 Szegoo

Since the diff size is now smaller I will rename Call and Origin here as well.

Szegoo avatar Aug 24 '22 06:08 Szegoo

@KiChjang @kianenigma I renamed the Call enum to RuntimeCall, could you please take a look?

Szegoo avatar Aug 24 '22 18:08 Szegoo

Please ask in the MR directly instead of opening SE questions in the future, thanks.
For posterity: it was a flaky test.

ggwpez avatar Aug 27 '22 12:08 ggwpez

Please ask in the MR directly instead of opening SE questions in the future, thanks. For posterity: it was a flaky test.

Yeah, it is resolved now, I deleted the question.

Szegoo avatar Aug 27 '22 12:08 Szegoo

@kianenigma @KiChjang Should I rename the Origin here as well?

Szegoo avatar Aug 29 '22 07:08 Szegoo

@Szegoo your Polkadot address please, a tip is coming.

kianenigma avatar Sep 06 '22 07:09 kianenigma

@Szegoo your Polkadot address please, a tip is coming.

I have added my address, thanks!

Szegoo avatar Sep 06 '22 07:09 Szegoo

@kianenigma Could you rerun thegitlab-check-dependent-polkadot CI check, it should be passing now.

Edit: not sure why the CI check is failing.

Szegoo avatar Sep 11 '22 06:09 Szegoo

@shawntabrizi @bkchr Do you have an idea why is diener failing in gitlab-check-dependent-polkadot?

Szegoo avatar Sep 12 '22 12:09 Szegoo

@shawntabrizi Seems like merging with master didn't solve the problem :)

Szegoo avatar Sep 12 '22 15:09 Szegoo

@shawntabrizi @bkchr Do you have an idea why is diener failing in gitlab-check-dependent-polkadot?

You need to do cargo update -p polkadot-runtime-common in your Cumulus pr and push these changes.

bkchr avatar Sep 12 '22 21:09 bkchr

bot merge

shawntabrizi avatar Sep 12 '22 22:09 shawntabrizi