Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Split social's functions into more files #18

Merged
merged 10 commits into from Jun 17, 2020
Merged

Conversation

subsocialdev
Copy link

No description provided.

@subsocialdev subsocialdev added this to the M4 (current) milestone Jun 6, 2020
@subsocialdev subsocialdev added this to In progress in M4, M5 Jun 6, 2020
@subsocialdev subsocialdev linked an issue Jun 6, 2020 that may be closed by this pull request
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
pallets/roles/src/lib.rs Show resolved Hide resolved
Comment on lines +6 to +8
decl_error, decl_event, decl_module, decl_storage, dispatch::DispatchError,
ensure,
traits::Get
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
decl_error, decl_event, decl_module, decl_storage, dispatch::DispatchError,
ensure,
traits::Get
decl_error, decl_event, decl_module, decl_storage,
dispatch::DispatchError,
traits::Get,
ensure

Earlier in PR dependencies were organized in this way (macro first, single crate deps last).

impl<T: Trait> Module<T> {

// FIXME: don't add reaction in storage before the checks in 'create_reaction' are done
pub fn insert_new_reaction(account: T::AccountId, kind: ReactionKind) -> ReactionId {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move it to impl<T: Trait> Reaction<T> {}?

Makes sense due to we use that principle with Space/Post for expample.

M4, M5 automation moved this from In progress to Review in progress Jun 10, 2020
@F3Joule F3Joule moved this from Review in progress to In progress in M4, M5 Jun 10, 2020
@subsocialdev subsocialdev changed the title Refactor pallets Split social's functions into more files Jun 10, 2020
@siman siman moved this from In progress to Review in progress in M4, M5 Jun 11, 2020
@subsocialdev subsocialdev marked this pull request as ready for review June 17, 2020 09:11
@subsocialdev subsocialdev merged commit b753fa4 into develop Jun 17, 2020
M4, M5 automation moved this from Review in progress to Done Jun 17, 2020
@F3Joule F3Joule deleted the alex-refactor branch April 21, 2022 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
M4, M5
  
Done
Development

Successfully merging this pull request may close these issues.

Rename in SpacePermission enum: ***Any***s -> ***Any***
3 participants