WIP feat(boards2): protected functions for sub-realms#5037
WIP feat(boards2): protected functions for sub-realms#5037jeronimoalbi wants to merge 4 commits intognolang:masterfrom
Conversation
For now board instances can only be getted by Boards2 sub realms to allow data migration or other specific features through sub realms. Feeds should be implemented in a sub realm, which requires access to boards data.
Renamed to `GetRealmPermissions`. The iterator was intended for data migration but now it makes sense as a namespaces protected public function.
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
|
These protected functions would allow to finish implementing board feeds support. They also would be helpful to have, for example, a specific sub-realm with public functions that would return readonly (wrapped) boards objects to allow better integration from third party realms, or external non web3 apps though JSON. cc @jefft0 |
|
Something to have in mind is that each board is intended to work as an independent community managed by a DAO, which is important when board instances are potentially accesible by future sub-realms which could override it. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This PR aims to introduce public Boards2 realm functions that can only be called from boards sub realms.
This would be necessary to implement, or move, specific features to sub-realms under
gno.land/r/gnoland/boards2namespace.These "protected" public functions would allow to implement data migration between Boards2 versions for example, or to add optional features that would require access to specific board data.
Moving or implementing new features as sub-realms would help keeping Boards2 realm leaner and would allow for a more "micro services" oriented approach for new features.