Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release'
Browse files Browse the repository at this point in the history
  • Loading branch information
daneryl committed Jan 18, 2021
2 parents 9b8e75d + f15b780 commit 013a188
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci_e2e_puppeteer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: e2e puppeteer

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
e2e_test_puppeteer:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_e2e_suite1.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: e2e suite 1

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
e2e_test:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_e2e_suite2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: e2e suite 2

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
e2e_test:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_eslint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: eslint

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
eslint:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_ts_types.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: check-types

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
check-types:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: unit tests

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
unit_test:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/security_audit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Modules security check

on: [push, pull_request]
on:
push:
branches:
- master
- development
- release
pull_request:

jobs:
yarn-audit:
Expand Down
4 changes: 2 additions & 2 deletions app/react/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ function getPageIndexRoute(customHomePage) {
function getIndexRoute(_nextState, callBack) {
const state = store.getState();
const homePageSetting = state.settings.collection.get('home_page');
const customHomePage = homePageSetting ? homePageSetting.split('/') : [];
const customHomePage = homePageSetting ? homePageSetting.split('/').filter(v => v) : [];
const isPageRoute = customHomePage.includes('page');

if (isPageRoute) {
return callBack(null, getPageIndexRoute(customHomePage));
}

if (homePageSetting) {
if (customHomePage.length) {
return callBack(null, {
onEnter: (_nxtState, replace) => {
replace(customHomePage.join('/'));
Expand Down
1 change: 0 additions & 1 deletion app/react/Settings/SettingsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default {
return linkWithoutLocalID;
}),
});

return api.post('settings', processedSettings).then((response: any) => response.json);
},

Expand Down
2 changes: 2 additions & 0 deletions app/shared/types/userGroupSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const emitSchemaTypes = true;
export const groupMemberSchema = {
type: 'object',
additionalProperties: false,
definitions: { objectIdSchema },
properties: {
_id: objectIdSchema,
username: { type: 'string' },
Expand All @@ -19,6 +20,7 @@ export const userGroupSchema = {
type: 'object',
additionalProperties: false,
uniqueName: true,
definitions: { objectIdSchema },
properties: {
_id: objectIdSchema,
name: { type: 'string' },
Expand Down
9 changes: 5 additions & 4 deletions app/shared/types/userGroupType.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/* eslint-disable */
/**AUTO-GENERATED. RUN yarn emit-types to update.*/
import { ObjectId } from 'mongodb';

import { ObjectIdSchema } from 'shared/types/commonTypes';

export interface GroupMemberSchema {
_id: string | ObjectId;
_id: ObjectIdSchema;
username?: string;
role?: string;
email?: string;
}

export interface UserGroupSchema {
_id?: string | ObjectId;
_id?: ObjectIdSchema;
name: string;
members: {
_id: string | ObjectId;
_id: ObjectIdSchema;
username?: string;
role?: string;
email?: string;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uwazi",
"version": "1.19.4",
"version": "1.20.0-rc.2",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
Expand Down

0 comments on commit 013a188

Please sign in to comment.