Compare commits

...

5 Commits

Author SHA1 Message Date
Tom Moor 60e7f3bb66 0.58.2-0 2021-08-04 09:24:04 -07:00
Tom Moor e9fe6ff572 fix: /public directory missing in new docker releases (#2417)
closes #2416
2021-08-04 09:23:53 -07:00
Tom Moor 7423bff401 fix: Paste handler should default to HTML when paste source is Outline editor
related #2416
2021-08-04 09:23:38 -07:00
Tom Moor f81638d0e0 0.58.1 2021-08-03 21:48:56 -07:00
Tom Moor dd811ca787 fix: Policies missing on documents.viewed endpoint 2021-08-03 21:48:40 -07:00
5 changed files with 18 additions and 8 deletions
+1
View File
@@ -35,6 +35,7 @@ ENV NODE_ENV production
COPY --from=builder $APP_PATH/build ./build
COPY --from=builder $APP_PATH/server ./server
COPY --from=builder $APP_PATH/public ./public
COPY --from=builder $APP_PATH/.sequelizerc ./.sequelizerc
COPY --from=deps-prod $APP_PATH/node_modules ./node_modules
COPY --from=builder $APP_PATH/package.json ./package.json
+2 -2
View File
@@ -143,7 +143,7 @@
"react-window": "^1.8.6",
"reakit": "^1.3.8",
"regenerator-runtime": "^0.13.7",
"rich-markdown-editor": "^11.17.0",
"rich-markdown-editor": "^11.17.1",
"semver": "^7.3.2",
"sequelize": "^6.3.4",
"sequelize-cli": "^6.2.0",
@@ -211,5 +211,5 @@
"dot-prop": "^5.2.0",
"js-yaml": "^3.13.1"
},
"version": "0.58.0"
"version": "0.58.2-0"
}
+10 -2
View File
@@ -310,9 +310,10 @@ router.post("documents.viewed", auth(), pagination(), async (ctx) => {
const user = ctx.state.user;
const collectionIds = await user.collectionIds();
const userId = user.id;
const views = await View.findAll({
where: { userId: user.id },
where: { userId },
order: [[sort, direction]],
include: [
{
@@ -325,9 +326,16 @@ router.post("documents.viewed", auth(), pagination(), async (ctx) => {
{
model: Star,
as: "starred",
where: { userId: user.id },
where: { userId },
separate: true,
required: false,
},
{
model: Collection.scope({
method: ["withMembership", userId],
}),
as: "collection",
},
],
},
],
+1
View File
@@ -1349,6 +1349,7 @@ describe("#documents.viewed", () => {
expect(res.status).toEqual(200);
expect(body.data.length).toEqual(1);
expect(body.data[0].id).toEqual(document.id);
expect(body.policies[0].abilities.update).toEqual(true);
});
it("should not return recently viewed but deleted documents", async () => {
+4 -4
View File
@@ -11566,10 +11566,10 @@ retry-as-promised@^3.2.0:
dependencies:
any-promise "^1.3.0"
rich-markdown-editor@^11.17.0:
version "11.17.0"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.17.0.tgz#9a39f5bd6518de1d0dc6c6ffa352fd3f7f664d96"
integrity sha512-zCl9F7eeR3T5O2tiSU9iNGDOKhYBfTMqwWMPSY4ADjHcxELNkF1wOdKb0lqM8ZOfM63DkPEZy/N7cSifReyqvg==
rich-markdown-editor@^11.17.1:
version "11.17.1"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.17.1.tgz#ace87dccf7e7c7f6e093d73accb467794d3cee60"
integrity sha512-/V7nPhjASnKVqFRW0CFKCe1+PrRZywVWzjvlpwzAKjpYW8QSWL/fViIkYzWBsynYamCT/A/iLx8ms6KJr6gSjw==
dependencies:
copy-to-clipboard "^3.0.8"
lodash "^4.17.11"