Граф коммитов

188 Коммитов

Автор SHA1 Сообщение Дата
AlexandruPopovici e6eb925490 Fixed an issue in preview-service which was making it fail 2022-08-26 15:13:36 +03:00
AlexandruPopovici 83a3a47c47 Implemented unified zoom function in the API which can either zoom on object selection, either zoom on the whole scene. Made some small changes to the SelectionEvent and DataTree which involves sending over the guids of nodes so that we can properly identify objects across the board 2022-08-25 18:57:00 +03:00
Dimitrie Stefanescu f378d88c19 feat(viewer/frontend): extra integration legwork 2022-08-25 10:28:48 +03:00
AlexandruPopovici 00fe016082 Added single entry point camera manipulation in the API. Defined the canonical, speckle and inline view types which can be used to set the camera. Removed the 'rotateTo' member as a bonus 2022-08-25 00:03:07 +03:00
AlexandruPopovici 632ad53152 Added World to the API. Can be used to check world dimensions and offsets. Cleaned up and added some comment in Viewer. After removing the reference to a lot of issues arose. The frontend and preview-service seems to use it extensively. Changed the calls referencing the interactions to the ones in the API where it was aplicable, and commented out with a note added for the ones that were not aplicable. We proably need to expose a generic way to manipulate the camera from the API 2022-08-24 18:24:43 +03:00
AlexandruPopovici 25c74556d0 Sandbox uses official viewer API exclusively. Added ViewerEvent for any events that the viewer emits and updated the references everywhere 2022-08-24 16:42:11 +03:00
Iain Sproat 1c5964fc41
Add Hadolint to pre-commit (#848)
* Adds hadolint as pre-commit step
* Addresses all hadolint comments
  * Use noninteractive apt-get frontend and clean after install
  * dockerfile RUN statements are consolidated to prevent additional layers
  * installed packages have pinned versions
* build(circleci): use speckle pre-commit runner with built-in hadolint
* Integrate pre-commit with husky bash script for git pre-commit hooks
  * catches errors in bash
  * if pre-commit is installed, it is run
  * if optional additional binaries are installed, further pre-commit steps are run
* Update README with revised developer instructions
* Adds a pre-commit yarn script
2022-08-09 13:47:02 +01:00
Gergő Jedlicska aafa5cb759
fix(backend services'): remove query timeout setting, it causes streaming queries to crash (#813) 2022-06-21 14:05:52 +02:00
Gergő Jedlicska d817e6dd0a
gergo/pgTimeout (#805)
* feat(server): add server authz pipeline rework first sketch

* feat(server authz): add new server authz middleware poc implementation

* test(server authz): add unittests for the new server authz workflow

* feat(wip rework of fileuploads vs blob storage): add basim impl of separate blob storage service

* feat(fileimport service): refactored file import service to utilize the new asssetstorage service

* refactor(server errors): refactor server errors to use the shared module definitions

Now all the errors inherit from BaseError

* refactor(fileimport service): cleanup after refactor

* feat(frontend fileimports): use the new blob storage for downloading the original file

* refactor(server fileimports): clean up the remnants of S3 storage from file imports

* refactor(server authz): centralize generic authz pipeline configs

* refactor(server blob storage): refactor / rename everything to use the `blob-storage` name

* ci(circleci): add s3 objectstorage environment variables

* ci(circleci): fix missing env variables

* ci(circleci): add minio test container

* ci(circleci): fix minio app startup

* ci(circleci): enable circleci remote docker

* ci(circleci): fix minio startup

* ci(cirleci): detach and wait properly for minio to start

* ci(circleci): revert to additional minio img config, it only fails when the container is stopped ?!

* ci(circleci): disable file uploads

* fix(fileimports): update with blob storage refactor leftovers

* feat(server blob storage): add blob storage graphql api

* refactor(server errors): merge new errors to shared module

* fix(server comments rte): fix import for RTE error

* chore(fileimports): remove node-fetch from dependency

* chore(server): remove body parser dependency

* fix(server blob storage): fix gql api

* fix(frontend): fix fileupload item not loading the new upload status, cause of premature event fire

* feat(server blob storage): fix file size limit and allow for public streams

* Update packages/server/modules/blobstorage/graph/schemas/blobstorage.graphql

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>

* chore(blobstorage): fix PR review issues

* fix(server): fix import bugs

* chore(docker): ignore python venv data for docker build context

* feat(knex): update knex configuration with min max connections and application_name

* feat(helm chart): configure postgres max connections for server in the helm chart

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2022-06-17 08:38:34 +02:00
Kristaps Fabians Geikins 827500c32b
fix(frontend): embed viewer bugfixes & speed improvements (#804)
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2022-06-16 12:37:04 +03:00
Gergő Jedlicska ed458fb619
Add blob storage backend (#802)
* feat(server): add server authz pipeline rework first sketch

* feat(server authz): add new server authz middleware poc implementation

* test(server authz): add unittests for the new server authz workflow

* feat(wip rework of fileuploads vs blob storage): add basim impl of separate blob storage service

* feat(fileimport service): refactored file import service to utilize the new asssetstorage service

* refactor(server errors): refactor server errors to use the shared module definitions

Now all the errors inherit from BaseError

* refactor(fileimport service): cleanup after refactor

* feat(frontend fileimports): use the new blob storage for downloading the original file

* refactor(server fileimports): clean up the remnants of S3 storage from file imports

* refactor(server authz): centralize generic authz pipeline configs

* refactor(server blob storage): refactor / rename everything to use the `blob-storage` name

* ci(circleci): add s3 objectstorage environment variables

* ci(circleci): fix missing env variables

* ci(circleci): add minio test container

* ci(circleci): fix minio app startup

* ci(circleci): enable circleci remote docker

* ci(circleci): fix minio startup

* ci(cirleci): detach and wait properly for minio to start

* ci(circleci): revert to additional minio img config, it only fails when the container is stopped ?!

* ci(circleci): disable file uploads

* fix(fileimports): update with blob storage refactor leftovers

* feat(server blob storage): add blob storage graphql api

* refactor(server errors): merge new errors to shared module

* fix(server comments rte): fix import for RTE error

* chore(fileimports): remove node-fetch from dependency

* chore(server): remove body parser dependency

* fix(server blob storage): fix gql api

* fix(frontend): fix fileupload item not loading the new upload status, cause of premature event fire

* feat(server blob storage): fix file size limit and allow for public streams

* Update packages/server/modules/blobstorage/graph/schemas/blobstorage.graphql

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>

* chore(blobstorage): fix PR review issues

* fix(server): fix import bugs

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2022-06-16 11:31:03 +02:00
Fabians 1b963ee44d feat: smart text editor & integration into stream comments 2022-06-10 16:46:57 +03:00
Alexandru Popovici b9a895e524
Fixed the issue with the preview service together with Gergo (#798) 2022-06-09 14:34:29 +02:00
Kristaps Fabians Geikins 437e1558ec
fix: fixing all builds that broke with the new viewer (#788)
builds fix + viewer logic fixes
2022-06-02 18:13:32 +03:00
Gergő Jedlicska 1d8ffac57a
update knex dependency chain (#776)
* chore(root): update packages

* chore(server + preview service): add pg-query-stream peer dependency

* build(dockerfiles): unify and update docker base layer to latest node lts
2022-06-01 10:25:09 +02:00
Gergő Jedlicska 1f5f5ef943
fix(preview service): there is no need to double promise a preview (#782) 2022-05-30 11:59:28 +02:00
Dimitrie Stefanescu 0ff34c383c
Merge pull request #778 from specklesystems/dim/angle-previews
3D previews fixes
2022-05-26 20:17:16 +01:00
Dimitrie Stefanescu d98a3c5d15 feat(previews): creates stiched frames previews 2022-05-26 15:53:01 +01:00
Dimitrie Stefanescu 6a695eab56
Merge pull request #760 from specklesystems/dim/angle-previews
feat(frontend): animated preview images
2022-05-25 14:59:07 +01:00
Gergő Jedlicska 1b3f653eca
build(preview-service): remove ghost dependencies from preview service (#770) 2022-05-25 14:24:03 +02:00
Dimitrie Stefanescu 174ce64004 feat(frontend): animated preview images
changes:
- preview service generates full 360 images now
- preview image component loads on hover
- preview image component backwards compat with non-360 image angles
- adds optional angle arguments in all preview routes & removes superflous route
2022-05-22 11:50:07 +01:00
Gergő Jedlicska 638969cd01
gergo/yarn (#753)
* yarn first go

* fix frontend build cache loader

* yarn workspaces built server Docker

* build(yarn): add workspaces plugin config

* chore(package defs): clean package*.json -s

* chore(gitignore): ignore yarn error log

* build(yarn): update yarn lock

* build(preview-service webpack): add extra resolved path to preview service webpack config

because of yarn package hoisting, there are no package level node_modules folder anymore.

* build(docker): update dockerignore with yarn specific configs

* build(docker): update Dockerfiles for yarn workspaces utilization

* ci(circleci): update server test job to yarn

* ci(circle): disable cache restore

* ci(circleci): trying the node orb yarn-run

* ci(circleci): yarn-run again

* ci(circleci): disable node orb

* ci(circleci): change base node image for tests

* ci(circleci): add yarn cache

* ci(circleci): remove node install step

* ci(circleci): add server specific cache archives

* ci(circleci): test build and publish

* ci(circleci): change npm auth method to suit yarn

* ci(circleci): trying new builder image

* ci(circleci): another base image, maybe this works

* ci(circleci): force a specific docker engine version

* ci(circleci): add yarn version plugin and its changes

* ci(circleci): cleanup and remove temp branch config

* chore(package defs): moving from npm run to yarn

* explicitly specifying webpack4 as a frontend dep

* chore(package defs): replace npm with yarn everywhere

* docs(root readme): update with some yarn specific docs

* chore(root workspace): update dev scripts and package lock

* ci(circleci): enable package publish step with yarn

Co-authored-by: Fabians <fabis94@live.com>
2022-05-19 19:53:07 +02:00
Gergő Jedlicska 25f23ba573
Merge pull request #716 from specklesystems/dependabot/npm_and_yarn/packages/preview-service/async-2.6.4
chore(deps): bump async from 2.6.3 to 2.6.4 in /packages/preview-service
2022-05-13 20:05:29 +02:00
cristi8 0a0fe3cb77 monitoring microservices; new container for overall monitoring of a deployment; helm update; helm local testing 2022-05-05 02:01:00 +03:00
dependabot[bot] bbf9d9799c
chore(deps): bump async from 2.6.3 to 2.6.4 in /packages/preview-service
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-30 14:50:02 +00:00
AlexandruPopovici 48e085ceaf Revert "chore(release): publish to npm. Done by mistake with lerna"
This reverts commit 8b974d0db5.
2022-04-30 17:48:02 +03:00
AlexandruPopovici 8b974d0db5 chore(release): publish to npm
[skip ci]

 - @speckle/fileimport-service@2.3.17
 - @speckle/frontend@2.3.17
 - @speckle/objectloader@2.4.3
 - @speckle/preview-service@2.4.3
 - @speckle/server@2.3.17
 - @speckle/viewer-sandbox@1.0.1
 - @speckle/viewer@2.4.3
 - @speckle/webhook-service@2.3.17
2022-04-29 12:54:26 +03:00
Kristaps Fabians Geikins e8869e210c
feat(frontend): build speed & chunk structure optimization (#690)
* feat(frontend): build speed & chunk structure optimization

* fix: attempting to work around precommit inconsistent eslint config

* chore(pre-commit config): ignore mocharc for eslint

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-04-13 10:21:24 +03:00
Gergő Jedlicska 45f47fed60 ci(frontend, preview service): rework dockerfiles to use clean packaged local dependencies 2022-04-09 16:08:02 +02:00
Gergő Jedlicska b574817200 chore: re lernafy package version specks 2022-04-09 16:06:55 +02:00
Fabians 4a5d2515c6 updating dockerfiles 2022-04-08 12:56:48 +03:00
CI f5573dd59b chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2889
 - @speckle/frontend@2.3.17-alpha.2889
 - @speckle/objectloader@2.3.17-alpha.2889
 - @speckle/preview-service@2.3.17-alpha.2889
 - @speckle/server@2.3.17-alpha.2889
 - @speckle/viewer@2.3.17-alpha.2889
 - @speckle/webhook-service@2.3.17-alpha.2889
2022-04-07 18:36:41 +00:00
Gergő Jedlicska e27ce97fd1 Merge branch 'CI/lernaPublish' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 20:34:25 +02:00
Gergő Jedlicska e8d6aa7d8e ci(previews): fix docker build 2022-04-07 20:34:19 +02:00
CI ae1bae65de chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2878
 - @speckle/frontend@2.3.17-alpha.2878
 - @speckle/objectloader@2.3.17-alpha.2878
 - @speckle/preview-service@2.3.17-alpha.2878
 - @speckle/server@2.3.17-alpha.2878
 - @speckle/viewer@2.3.17-alpha.2878
 - @speckle/webhook-service@2.3.17-alpha.2878
2022-04-07 18:22:45 +00:00
Gergő Jedlicska 64d04302b3 Merge branch 'CI/lernaPublish' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 20:21:02 +02:00
Gergő Jedlicska 23fa2d2aa6 ci(preview service): fix dockerfile 2022-04-07 20:20:52 +02:00
CI 826d4546ec chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2867
 - @speckle/frontend@2.3.17-alpha.2867
 - @speckle/objectloader@2.3.17-alpha.2867
 - @speckle/preview-service@2.3.17-alpha.2867
 - @speckle/server@2.3.17-alpha.2867
 - @speckle/viewer@2.3.17-alpha.2867
 - @speckle/webhook-service@2.3.17-alpha.2867
2022-04-07 18:11:38 +00:00
Gergő Jedlicska f432f30651 Merge branch 'CI/lernaPublish' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 20:08:01 +02:00
Gergő Jedlicska b6b997c303 ci(circle ci): revert docker builds to simlink approach 2022-04-07 20:07:52 +02:00
CI 7e06f4b96c chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2856
 - @speckle/frontend@2.3.17-alpha.2856
 - @speckle/objectloader@2.3.17-alpha.2856
 - @speckle/preview-service@2.3.17-alpha.2856
 - @speckle/server@2.3.17-alpha.2856
 - @speckle/viewer@2.3.17-alpha.2856
 - @speckle/webhook-service@2.3.17-alpha.2856
2022-04-07 17:53:00 +00:00
Gergő Jedlicska 208109401f ci: testing docker builds from npm packages for viewer 2022-04-07 19:51:25 +02:00
CI 963750e64a chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2844
 - @speckle/frontend@2.3.17-alpha.2844
 - @speckle/objectloader@2.3.17-alpha.2844
 - @speckle/preview-service@2.3.17-alpha.2844
 - @speckle/server@2.3.17-alpha.2844
 - @speckle/viewer@2.3.17-alpha.2844
 - @speckle/webhook-service@2.3.17-alpha.2844
2022-04-07 16:14:33 +00:00
Gergő Jedlicska 55f658b04e Merge branch 'main' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 18:12:27 +02:00
CI cb03a52104 chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2830
 - @speckle/frontend@2.3.17-alpha.2830
 - @speckle/objectloader@2.3.17-alpha.2830
 - @speckle/preview-service@2.3.17-alpha.2830
 - @speckle/server@2.3.17-alpha.2830
 - @speckle/viewer@2.3.17-alpha.2830
 - @speckle/webhook-service@2.3.17-alpha.2830
2022-04-07 15:58:04 +00:00
Gergő Jedlicska 0206307a7c chore: make packages private again 2022-04-07 13:43:49 +02:00
Fabians 084cf1585e chore: adding node version checks + migrating server lock back to new format 2022-04-07 13:05:25 +03:00
Matteo Cominetti 8b7f539427
feat: removes matomo & changes some CI/CD settings (#670) 2022-04-06 15:58:05 +03:00
dependabot[bot] 4fde15a3ac
chore(deps): bump node-forge in /packages/preview-service
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.2.1...v1.3.1)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 08:41:46 +00:00
Gergő Jedlicska 569cc34d8f
Merge pull request #644 from specklesystems/dependabot/npm_and_yarn/packages/preview-service/minimist-1.2.6
chore(deps): bump minimist from 1.2.5 to 1.2.6 in /packages/preview-service
2022-04-05 10:36:56 +02:00
Fabians 4699e6794c reformatting again for 88 width 2022-04-04 19:21:28 +03:00
Fabians 1c7436e7ff extra prefer-const & object-shorthand 2022-04-04 19:00:24 +03:00
Gergő Jedlicska 1355ddab6f style(all): some extra formatting fixes 2022-04-01 09:40:47 +02:00
Gergő Jedlicska b2d5cd3a01 style(previews): fix eslint for preview service 2022-03-31 17:23:35 +02:00
Gergő Jedlicska 985d95181a Merge branch 'main' of github.com:specklesystems/speckle-server into eslintAllTheThings 2022-03-31 14:53:52 +02:00
Gergő Jedlicska 0372734c1a style(previews): fix most of eslint errors 2022-03-31 10:35:36 +02:00
Fabians abe6d5e086 chore: re-formatted everything with prettier 2022-03-30 12:54:24 +03:00
Gergő Jedlicska 569b4688fa style(all): reformat with print width 88 2022-03-29 19:46:49 +02:00
Fabians aa5e94d640 chore: reformatting everything with prettier 2022-03-29 17:12:31 +03:00
dependabot[bot] 4f764468c9
chore(deps): bump minimist in /packages/preview-service
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 10:42:46 +00:00
Kristaps Fabians Geikins b157a98901 feat(server): simplified test running & IDE integrations 2022-03-16 17:31:53 +02:00
Kristaps Fabians Geikins 8010bf3c4c
feat: Standardized & cleaned up formatting & linting across repo #617 (#618)
* feat: Standardized & cleaned up formatting & linting across repo

Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-03-16 10:10:30 +02:00
Cristian Balas 68908525c0
depndency upgrades (#598) 2022-02-17 21:34:53 +02:00
Cristian Balas 9329265708
Upgrade dependencies (#577) 2022-02-07 14:04:26 +02:00
Cristian Balas 7cfa85a627
other lgtm fixes (#571) 2022-02-02 15:30:25 +02:00
Dimitrie Stefanescu 7c2d7334e9 Merge branch 'main' into analytics 2022-01-31 12:49:07 +00:00
Matteo Cominetti 50158ee39d feat(frontend): adds new analytics service 2022-01-28 18:43:25 +00:00
Cristian Balas b2ae6501b1
fixed lgtm error (#558) 2022-01-28 18:03:49 +02:00
Gergő Jedlicska d36113dad0 chore(dependencies): re lock all packages just in case 2022-01-24 13:38:32 +01:00
Cristian Balas f3e74e0e64
Preview service fixes (#530) 2022-01-19 21:03:39 +02:00
Cristian Balas 019b7ac495
Service health (#516)
* health checks, sigterm handling for all services
2022-01-12 15:18:32 +02:00
Cristian Balas 80a74503e5
updating deps and fixes (#498) 2021-12-14 11:49:19 +02:00
cristi8 a4facd09ba fixed previewservice docker build 2021-12-07 15:10:50 +02:00
Gergő Jedlicska 3fb6bc7d71 Merge branch 'main' of github.com:specklesystems/speckle-server into gergo/node16 2021-12-07 11:27:05 +01:00
Gergő Jedlicska 183c461f8f chore(viewer): add non relative dependencies to viewer 2021-11-24 12:57:35 +01:00
Dimitrie Stefanescu 5b957771e8 fix(deps): re-bootstrapped everything and ensured local build actually works 2021-11-24 11:12:33 +01:00
Gergő Jedlicska f6409f1dfd build(node version): upgrade to current node LTS version 2021-11-15 12:52:34 +01:00
Matteo Cominetti 2fbaf97305 fix(frontend): better commit grouping #422 2021-11-05 14:50:23 +00:00
Cristian Balas 37f18be68d
Added memory limits to previewservice (#349) 2021-07-21 10:39:16 +03:00
Cristian Balas 0fb22deda9
previewService detect browser page crash, added postprocessing option in server preview endpoint (#344) 2021-07-19 12:19:35 +03:00
Cristian Balas bd7505e7b0
increase preview service retry delay to 1 week (#305) 2021-06-18 17:16:42 +03:00
Dimitrie Stefanescu 94c4c90d60 feat(server): increasing highwatermark in db stream; adding passthrough for bigger (500k) buffers cc @crist8 2021-06-17 13:27:42 +01:00
cristi8 361270ac6c PreviewService package-lock update 2021-06-16 12:29:06 +03:00
Cristian Balas 23530c6f27
PreviewService: streaming download fix, added prometheus metrics (#298) 2021-06-15 12:04:13 +03:00
Cristian Balas 53698086fc
Preview service readme (#243)
* readme.md for preview-service

* PreviewService: Include the wait command
2021-05-14 13:45:39 +03:00
Cristian Balas 7709f57776
preview-service smaller docker image size (#240) 2021-05-13 15:51:13 +03:00
Cristian Balas 344547d143
preview-service stability fixes (#238) 2021-05-12 23:57:28 +03:00
Cristian Balas 93edc65f66
Object Preview service 2021-04-29 15:11:22 +03:00