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

Extract space ownership tests from integration-test #82

Conversation

TarekkMA
Copy link
Contributor

based on #74

F3Joule and others added 30 commits June 14, 2022 16:30
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
- Add User structure to parachain-utils
- Make df-traits crate compilable
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
Add throw_utils_error
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
Co-Authored-By: Shady Khalifa <shekohex@gmail.com>
F3Joule and others added 14 commits July 8, 2022 16:11
…rt` (dappforce#78)

* Reactor utils and traits to subsocial-support crate

* Fix imports in integration tests

* Do a proper name for a crate

* Fix Error enum in subsocial-support

* Fix runtime

* Change SpacePermissionsProvider fn name

From `get_space` to `space_permissions_info`

* Split `Error` in subsocial-support to a few enums

* Refactor `Content` struct

Remove `Hyper, rename `Raw` to `Other`

* Fix strum dependency in Cargo.toml

* Fix integration tests
* Refactor spaces pallet code

* Fix code formatting in spaces pallet

* Remove handles and scores from spaces

* Rename some variables

* Fix spaces pallet in a runtime

* Fix formatting manually

* Fix `init_pallet` in `pallet_spaces`
* Upgrade `pallet-profiles` to the new proc macro

* Update Cargo.lock

* Fix warnings related to profiles pallet upgrade
Merge branch dappforce/main into feature/move-pallets
* Fix runtime and errors

* Fix integration tests error

* Replace social account with space as profile

* Fix code formatting

* Loose couple profiles with space-ownership

- Profiles and space-ownership aren't more tight coupled
- Rename `ProfileSpaceByAccount` to `ProfileSpaceIdByAccount`
- Add `unset_space_as_profile` extrinsic
- Add `ensure_space_owner` to SpacePermissionsProvider

* Rename extrinsics in profiles pallet

Now two extrinsics to manage profiles are:`set_profile` and `reset_profile`
* Remove redundant counters from space

* Fix integration tests
…pforce#111)

* WIP: move profile follows pallet from solochain

* Update `profile-follows` to the new proc macro

* Rename profile-follows to account-follows

Add account-follows to runtime
@TarekkMA TarekkMA force-pushed the tarekkma/space-ownership-tests branch from 3545aaf to 44fd7eb Compare July 27, 2022 11:44
@TarekkMA TarekkMA changed the base branch from feature/move-pallets to main December 20, 2022 08:55
@TarekkMA TarekkMA changed the base branch from main to feature/tests-and-benchmarks December 21, 2022 11:14
@F3Joule F3Joule requested review from olehmell and removed request for siman December 21, 2022 11:40
Copy link
Member

@F3Joule F3Joule left a comment

Choose a reason for hiding this comment

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

Remove redundant parts of code from tests_utils.rs and imports from mock.rs, there are lots of "unused" warnings.

pallets/space-ownership/tests/Cargo.toml Outdated Show resolved Hide resolved
pallets/space-ownership/tests/Cargo.toml Outdated Show resolved Hide resolved
pallets/space-ownership/tests/Cargo.toml Outdated Show resolved Hide resolved
pallets/space-ownership/tests/Cargo.toml Outdated Show resolved Hide resolved
@F3Joule F3Joule merged commit 5934d90 into dappforce:feature/tests-and-benchmarks Dec 27, 2022
@F3Joule F3Joule removed a link to an issue Feb 3, 2023
12 tasks
F3Joule added a commit that referenced this pull request Feb 6, 2023
* Extract post tests from integration-test (#83)

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>

* Extract reaction tests from integration-test (#84)

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>

* Extract space-follows tests from integration-test (#81)

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>
Co-authored-by: Alex Siman <aleksandr.siman@gmail.com>

* Extract spaces tests from integration-test (#80)

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>

* Extract space ownership tests from integration-test (#82)

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>

* Clean up Space Ownership tests (#171)

* Cleanup mocks and test utils (#172)

* Clean up Reactions tests

* Clean up Posts tests
   - Refactor test_utils to correspond with new integration-tests

* Clean up Spaces tests

---------

Co-authored-by: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com>

---------

Co-authored-by: Tarek Mohamed Abdalla <tarekkma@gmail.com>
Co-authored-by: Alex Siman <aleksandr.siman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants