-
Notifications
You must be signed in to change notification settings - Fork 4
ENG-1233 Group functionality testing #678
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
Open
maparent
wants to merge
11
commits into
main
Choose a base branch
from
eng-1233-group-functionality-testing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5ce148f
group function tests
maparent 313c174
adjust to new ContentAccess
maparent 19ab5cc
coderabbit correction, linting
maparent b47811e
coderabbit correction
maparent 51530db
Account for rename
maparent 28bb8b2
coderabbit nits
maparent c2a1855
forgot a cast
maparent 3022fcc
better type checking
maparent 9f264bb
Uniform handling of localRefs type
maparent 7a9c73b
persist localRefs
maparent 524bb13
Add an unshared content, give partal access to Space
maparent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| Feature: Group content access | ||
| User story: | ||
| * As a user of the Obsidian plugin | ||
| * Logged in through a given space's anonymous account | ||
| * I want to be able to create a group including another user outside my space | ||
| * giving that user access to my private content | ||
|
|
||
| Acceptance criteria: | ||
| * The second user should not have access to the content before I publish my content to the group | ||
| * The second user should have access after I publish my content to the group | ||
|
|
||
| Background: | ||
| Given the database is blank | ||
| And the user user1 opens the Roam plugin in space s1 | ||
| And the user user2 opens the Roam plugin in space s2 | ||
|
|
||
| Scenario: Creating content | ||
| When Document are added to the database: | ||
| | $id | source_local_id | created | last_modified | _author_id | _space_id | | ||
| | d1 | ld1 | 2025/01/01 | 2025/01/01 | user1 | s1 | | ||
| | d2 | ld2 | 2025/01/01 | 2025/01/01 | user1 | s1 | | ||
| And Content are added to the database: | ||
| | $id | source_local_id | _document_id | text | created | last_modified | scale | _author_id | _space_id | | ||
| | ct1 | lct1 | d1 | Claim 1 | 2025/01/01 | 2025/01/01 | document | user1 | s1 | | ||
| | ct2 | lct2 | d2 | Claim 2 | 2025/01/01 | 2025/01/01 | document | user1 | s1 | | ||
| Then a user logged in space s1 should see 2 PlatformAccount in the database | ||
| And a user logged in space s1 should see 2 Content in the database | ||
| And a user logged in space s2 should see 2 PlatformAccount in the database | ||
| But a user logged in space s2 should see 0 Content in the database | ||
| When user of space s1 creates group my_group | ||
| And user of space s1 adds space s2 to group my_group | ||
| Then a user logged in space s1 should see 2 Content in the database | ||
| But a user logged in space s2 should see 0 Content in the database | ||
| And a user logged in space s2 should see 1 Space in the database | ||
| And ResourceAccess are added to the database: | ||
| | _account_uid | _space_id | source_local_id | | ||
| | my_group | s1 | lct1 | | ||
| And SpaceAccess are added to the database: | ||
| | _account_uid | _space_id | permissions | | ||
| | my_group | s1 | partial | | ||
| Then a user logged in space s1 should see 2 Content in the database | ||
| Then a user logged in space s2 should see 1 Content in the database | ||
| And a user logged in space s2 should see 2 Space in the database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.