Skip to content

Commit

Permalink
Group permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
WilStead committed Aug 24, 2022
1 parent edaa41a commit a386241
Show file tree
Hide file tree
Showing 6 changed files with 376 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: publish
env:
VERSION: '0.8.3-preview'
VERSION: '0.8.4-preview'
PRERELEASE: true
on:
push:
Expand Down
30 changes: 29 additions & 1 deletion Test/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Tavenem.Wiki.Test;
[TestClass]
public class SerializationTests
{
private static readonly WikiOptions _Options = new WikiOptions();
private static readonly WikiOptions _Options = new();

[TestMethod]
public void ArticleTest()
Expand All @@ -28,6 +28,8 @@ public void ArticleTest()
null,
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand Down Expand Up @@ -55,6 +57,8 @@ public void ArticleTest()
new ReadOnlyCollection<string>(new string[] { "TEST_VIEWER_ID" }),
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand Down Expand Up @@ -86,6 +90,8 @@ public void ArticleTest_Context()
null,
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand Down Expand Up @@ -114,6 +120,8 @@ public void ArticleTest_Context()
new ReadOnlyCollection<string>(new string[] { "TEST_VIEWER_ID" }),
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand Down Expand Up @@ -145,6 +153,8 @@ public void CategoryTest()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null);

Expand Down Expand Up @@ -173,6 +183,8 @@ public void CategoryTest_Context()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null);

Expand Down Expand Up @@ -353,6 +365,8 @@ public void MixedArticleTypesTest()
null,
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand All @@ -371,6 +385,8 @@ public void MixedArticleTypesTest()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null),
new WikiFile(
Expand All @@ -390,6 +406,8 @@ public void MixedArticleTypesTest()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null),
};
Expand Down Expand Up @@ -423,6 +441,8 @@ public void MixedArticleTypesTest_Context()
null,
null,
null,
null,
null,
false,
false,
new ReadOnlyCollection<string>(Array.Empty<string>()),
Expand All @@ -441,6 +461,8 @@ public void MixedArticleTypesTest_Context()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null),
new WikiFile(
Expand All @@ -460,6 +482,8 @@ public void MixedArticleTypesTest_Context()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null),
};
Expand Down Expand Up @@ -520,6 +544,8 @@ public void WikiFileTest()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null);

Expand Down Expand Up @@ -551,6 +577,8 @@ public void WikiFileTest_Context()
"TEST_OWNER_ID",
null,
null,
null,
null,
new ReadOnlyCollection<string>(Array.Empty<string>()),
null);

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.8.4-preview
### Changed
- Modified constructors to add support for group permissions.

## 0.8.3-preview
### Changed
- Group page edit permission based solely on group membership.
Expand Down
Loading

0 comments on commit a386241

Please sign in to comment.