Commit Graph

2876 Commits

Author SHA1 Message Date
Iain Sproat 3d4b3b6979 Pin python requirements and bump to latest versions (#1140)
* Pin python requirements and bump to latest versions
* fix(fileimports): add exception printing to file imports

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-11-01 11:17:03 +00:00
Iain Sproat 1dac1e43b6 Fix build.sh as regex had features not available in bash regex (ere flavor) (#1166) 2022-11-01 11:03:15 +00:00
AlexandruPopovici fa9ad5b651 #1136 Removed ctrl+click debug feature 2022-11-01 11:46:25 +02:00
Iain Sproat a51ba5f4a9 Circleci manual holds (#1152)
* ci(circleci): introduces manual holds to prevent resource wastage

We were building all commits unnecessarily. The logic was not consistent for versioning and when to
build and when to publish. This PR addresses these issues.

* Replaces `should-build` with `build-approval`
* Replace `should-publish` with `publish-approval`

* Clean up image tagging logic
    - tags as latest when version is semver or semver-alpha.build_number
    - other commits aren't tagged as latest, and instead tagged with their branch name
    - move naming logic to common.sh script

* Push each tag individually to avoid pollution
    - docker engine used is shared amongst all runs of speckle-server pipeline, so pushing all tags indiscrimanately pushes images built on other CircleCI runs 😬

* Improve logging
* Do not require approval for any tagged commit
2022-11-01 08:52:51 +00:00
AlexandruPopovici 804aa5e595 Fix #1161 2022-10-31 10:58:20 +02:00
Kristaps Fabians Geikins 8daa427d62 fix(frontend): fix commit share btn looking off in light theme (#1153) 2022-10-27 12:22:28 +03:00
Iain Sproat 564b5dc5fb Bump docker images (#1148) 2022-10-25 16:12:24 +01:00
Iain Sproat 8aa7f51d27 Revert "chore(dockerfile): bump Dockerfile base image versions (#974)" (#1146)
This reverts commit 6d6264c779.
2022-10-25 15:43:29 +01:00
Kristaps Fabians Geikins 9860be7fd8 fix: various dependabot vulnerability fixes (#1143)
* fix: updating minimist to resolve vulnerability

* fix: upgrade mocha to fix minimatch vuln

* fix: terser vuln fix

* fix: moment.js vuln fix

* fix: getting rid of perfect toolbar (which resolves vulns)
2022-10-25 17:01:20 +03:00
Iain Sproat 6d6264c779 chore(dockerfile): bump Dockerfile base image versions (#974) 2022-10-25 14:35:43 +01:00
Iain Sproat 8255015696 Adds gitguardian ggshield pre-commit hook (#912)
* Adds gitguardian ggshield pre-commit step
* Intended to be run locally and not in CI
* Updates gitguardian config to version 2
2022-10-25 13:41:00 +01:00
dependabot[bot] ce2624760c chore(deps): bump undici from 5.5.1 to 5.8.2 (#1142)
Bumps [undici](https://github.com/nodejs/undici) from 5.5.1 to 5.8.2.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.5.1...v5.8.2)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 11:47:40 +01:00
Iain Sproat b2ca83efc5 fix(package.json): upgrades commitizen to ^4.2.5 (#1139)
Upgrades directly referenced commitizen to ^4.2.5, which includes version 1.2.6 of minimist

https://github.com/specklesystems/admin/issues/358
2022-10-25 11:33:15 +01:00
dependabot[bot] e26b67d1b2 chore(deps): bump file-type from 16.5.3 to 16.5.4 (#1082)
* chore(deps): bump file-type from 16.5.3 to 16.5.4

Bumps [file-type](https://github.com/sindresorhus/file-type) from 16.5.3 to 16.5.4.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](https://github.com/sindresorhus/file-type/compare/v16.5.3...v16.5.4)

---
updated-dependencies:
- dependency-name: file-type
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updates yarn.lock

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2022-10-25 11:25:16 +01:00
Kristaps Fabians Geikins 55c736118b feat(frontend): share buttons directly on commit cards + batch commit actions UX improvements (#1122)
* feat(frontend): help message for disabled checkboxes on commit cards

* refactor: share-stream-dialog cleanup

* refactor: further share-stream-dialog prep for more usages

* feat(server): sharing directly from commit grid cards

* feat(server): sharing directly from commit list cards

* refactor: removing unnecessary dev tests
2022-10-25 13:16:33 +03:00
Kristaps Fabians Geikins 3f3f399ce6 feat(frontend): auto-focus on 1st comment in embed slideshow mode (#1109) 2022-10-25 12:57:19 +03:00
Alexandru Popovici 708f75e20d #Fixed 1104 (#1106)
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2022-10-21 15:54:29 +03:00
Alexandru Popovici a0a33a9bc1 Removed a lot of redundacy from the filtering manager's 'populateGenericState' function. There's still a lot left, but I think a more general solution is required for further speedups (#1133) 2022-10-21 15:37:29 +03:00
Iain Sproat d755136f19 Upgrade postgres in DO 1click template to 14.5 (#1090) 2022-10-21 09:51:50 +01:00
Iain Sproat 4e71c41ae8 Removes the migration guide to speckle guides (#1131)
* removes the guide from this repository
2022-10-20 16:38:29 +01:00
Iain Sproat c59084f4fd Upgrades redis to 7.0.5 in circleci & DO 1click configuration (#1087)
* Upgrades redis to 7.0.5 in docker-compose & circleci

* Upgrade redis on minikube to 7.0
2022-10-20 12:53:12 +01:00
Iain Sproat 07f7572c9d fix(helm chart): fileimport should be deployed if s3 configmap is used (#1129)
Fixes bug where fileimport-service was not deployed if an s3 configmap was used, instead of defining
s3 endpoint etc. in helm chart values
2022-10-19 16:43:12 +01:00
Matteo Cominetti 1f4dd333c0 Update SourceAppAvatar.vue (#1116) 2022-10-17 09:18:17 +01:00
Kristaps Fabians Geikins 5f48ae8086 feat(server): optimized command for importing commits from other servers (#1113) 2022-10-17 10:32:01 +03:00
Kristaps Fabians Geikins 0379d370d5 fix(frontend): viewer activity broadcast request volume greatly reduced (#1107)
* fix(frontend): viewer activity broadcast request volume greatly reduced

* fix(frontend): app being loaded twice when running viewer in vite hmr
2022-10-12 17:44:33 +03:00
Iain Sproat 4b9f915bd3 docs(docker-compose): documentation to assist database upgrades of docker-compose (#1100)
Upgrading databases in postgres is not straightforward as the volume is often not compatible. It
requires creating a database backup, deleting the volume, deploying the upgraded version, and then
restoring from backup. This PR provides documentation and scripts to assist with this process.

Co-authored-by: Fabians <fabis94@live.com>
2022-10-12 11:43:59 +01:00
Jonathon Broughton 762a0e3c4f Merge pull request #1095 from specklesystems/jsdb/fix/1093
Fix: Remove old incorrect readme in viewer/src
2022-10-12 11:37:44 +01:00
Kristaps Fabians Geikins ca5cfaaf2b fix(frontend): comment link & attachment styling in both themes (#1102)
* Adding top-level ID to all v-app instances

* fix(frontend): comment link & attachment styling in both themes

* fix(frontend): some TS typing errors
2022-10-12 11:08:23 +03:00
Kristaps Fabians Geikins 718e0d6081 chore: securing apollo server cache against DDoS attacks (#1099)
* chore: securing apollo server cache against DDoS attacks

* enabling csrf protection
2022-10-11 13:35:00 +03:00
Iain Sproat b23e2fc284 Revert bump to postgres in docker-compose-deps (#1096)
- ideally should have an upgrade script or docs before deploying this
2022-10-10 15:00:38 +01:00
Dimitrie Stefanescu a9f2f629a7 Merge pull request #845 from specklesystems/dim/blobs-sdk-harmony
Blobs API SDK Driven Changes
2022-10-10 16:58:48 +03:00
Kristaps Fabians Geikins 0a58381174 feat: @speckle/shared & some comments fixes (#997) 2022-10-10 16:32:23 +03:00
Iain Sproat ba71184421 upgrade development contexts to use postgres 14.5 (#1089)
* Upgrade CircleCI configuration to postgres 14.5

* docker-compose-deps upgraded to postgres 14.5

* Upgrade minikube to use postgres 14.5
2022-10-10 12:04:15 +01:00
Jonathon Broughton 93140eaacb fixes #1093 2022-10-10 11:28:21 +01:00
Dimitrie Stefanescu 051929b23c Merge branch 'main' into dim/blobs-sdk-harmony 2022-10-10 11:16:10 +03:00
Gergő Jedlicska 636d4b0a7c gergo/CIlcovUploadDisable (#1079)
* fix(test-deployment container): fix frontend readiness tests with new vite bundling changes

* ci(circleci): disable uploading lcov report files
2022-10-07 17:54:53 +02:00
Iain Sproat df8c6ccc4f fix(helm chart): networkPolicy supports distinct namespaces for prometheus pod & servicemonitor (#1086)
* fix(helm chart): networkPolicy supports distinct namespaces for prometheus pod & servicemonitor

Network policy did not allow ingress from prometheus if it was deployed in a different namespace
from the servicemonitor. This PR allows the ingress to be configured to match the operator's
requirements.

addresses https://github.com/specklesystems/gitOps/issues/68

* provides additional validation and error output when getting secrets
* Fix for kubernetes network policies using s3 details from ConfigMap
* Remove blocking of 10.0.0.0/8 range as this also prevents access to cloud provider private IPs
* Update values.schema.json
2022-10-07 11:39:50 +01:00
Kristaps Fabians Geikins 09d3844155 fix(frontend): comment mentions broken post-vite (#1084) 2022-10-06 15:58:47 +03:00
Vishnu Rai 9a64a245b7 fix(frontend): avatar editor horizontal scrolling not working
Horizontal Scrolling was not working because of the parent container width was small than the image container.
2022-10-06 12:45:25 +03:00
Kristaps Fabians Geikins 8e59ee7243 refactor: moving away from 'user' query (#1046)
* refactor: moving away from 'user' query + various fixes

* fix: linting issue in stream tests

* fix(server): some tests broken after rebase onto main
2022-10-06 12:08:08 +03:00
Kristaps Fabians Geikins 029aabf432 chore: getting rid of unnecessary deployment test (#1083) 2022-10-06 11:45:44 +03:00
Kristaps Fabians Geikins db6a3e9367 refactor(server): apollo server v2 -> v3 migration (#1071) 2022-10-06 11:12:16 +03:00
Kristaps Fabians Geikins facbde93bf fix(frontend): stream uploads page error fix (#1080) 2022-10-05 18:31:21 +03:00
Gergő Jedlicska 2aefbd27e1 fix(test-deployment container): fix frontend readiness tests with new vite bundling changes (#1078) 2022-10-05 17:11:13 +02:00
Kristaps Fabians Geikins 2fef8b7de3 refactor(frontend): vue cli v4 -> vite (#1000) 2022-10-05 15:59:11 +03:00
Kristaps Fabians Geikins f5468c2b33 chore: migrating vetur -> volar in VSCode (#1058)
* chore: migrating vetur -> volar in VSCode

* chore: improved volar workspace configuration
2022-10-05 15:32:24 +03:00
Gergő Jedlicska a98c2c53da fix(server digest emails): add styling fixes to weekly digest emails (#1075) 2022-10-05 12:23:44 +02:00
Gergő Jedlicska 393a192940 gergo/emailDigestFixes (#1074)
* feat(server task scheduler): sketch out core task scheduler implementation

* feat(server weekly activity digests): add function lock duration to the weekly digest execution

* feat(server scheduled tasks): add scheduled tasks type definition, db schema and migration

* feat(server scheduled tasks): add scheduled tasks repository

* feat(server task scheduler): add task scheduler service implementation

* chore(server deps): add mocha type definitions

* refactor(server scheduled tasks): refactor scheduled tasks migration

* refactor(server scheduled tasks): refactor scheduled task db schema and type definitions

* feat(server scheduled tasks): implement db side lock acquire

* refactor(server scheduled tasks): refactor task scheduler with lock on query mechanism

* test(server scheduled tasks): add tests for scheduled tasks implementation

* refactor(server weekly activity digests): refactor to new task scheduler implementation

* feat(server weekly activity digest): switch to a 1000 seconds trigger period for testing purposes

* fix(server task scheduler): fix not catching lock acquire function errors

* feat(server weekly digest): switch weekly digest cron trigger to the prod ready value

* fix(nginx configs): fix missing static route proxy to backend

* fix(server email template): fix footer anchor tags not pointing to the right places
2022-10-05 10:09:24 +02:00
Gergő Jedlicska 8b386ff078 gergo/weeklyDigestProdConfig (#1072)
* feat(server task scheduler): sketch out core task scheduler implementation

* feat(server weekly activity digests): add function lock duration to the weekly digest execution

* feat(server scheduled tasks): add scheduled tasks type definition, db schema and migration

* feat(server scheduled tasks): add scheduled tasks repository

* feat(server task scheduler): add task scheduler service implementation

* chore(server deps): add mocha type definitions

* refactor(server scheduled tasks): refactor scheduled tasks migration

* refactor(server scheduled tasks): refactor scheduled task db schema and type definitions

* feat(server scheduled tasks): implement db side lock acquire

* refactor(server scheduled tasks): refactor task scheduler with lock on query mechanism

* test(server scheduled tasks): add tests for scheduled tasks implementation

* refactor(server weekly activity digests): refactor to new task scheduler implementation

* feat(server weekly activity digest): switch to a 1000 seconds trigger period for testing purposes

* fix(server task scheduler): fix not catching lock acquire function errors

* feat(server weekly digest): switch weekly digest cron trigger to the prod ready value
2022-10-04 16:55:08 +02:00
Kristaps Fabians Geikins 1351b6b82a feat(server): fixing double summary emails per week (#1054)
* feat(server task scheduler): sketch out core task scheduler implementation

* feat(server weekly activity digests): add function lock duration to the weekly digest execution

* feat(server scheduled tasks): add scheduled tasks type definition, db schema and migration

* feat(server scheduled tasks): add scheduled tasks repository

* feat(server task scheduler): add task scheduler service implementation

* chore(server deps): add mocha type definitions

* refactor(server scheduled tasks): refactor scheduled tasks migration

* refactor(server scheduled tasks): refactor scheduled task db schema and type definitions

* feat(server scheduled tasks): implement db side lock acquire

* refactor(server scheduled tasks): refactor task scheduler with lock on query mechanism

* test(server scheduled tasks): add tests for scheduled tasks implementation

* refactor(server weekly activity digests): refactor to new task scheduler implementation

* feat(server weekly activity digest): switch to a 1000 seconds trigger period for testing purposes

* fix(server task scheduler): fix not catching lock acquire function errors

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-10-04 16:11:01 +02:00