Commit Graph

4652 Commits

Author SHA1 Message Date
Dimitrie Stefanescu b2ae724fc6 chore(frontend): linting errs fix 2022-09-01 12:01:54 +03:00
Dimitrie Stefanescu 018a0d7dab chore(viewer/frontend): cleanup 2022-09-01 11:46:21 +03:00
Dimitrie Stefanescu 2aec2db884 chore(viewer/frontend): linting 2022-09-01 09:26:40 +03:00
Dimitrie Stefanescu 1cf34b0787 chore(viewer/frontend): removed legacy fm 2022-09-01 09:25:10 +03:00
Dimitrie Stefanescu 987329b240 feat(viewer/frontend): removed old filtering methods, renamed new ones 2022-09-01 09:17:52 +03:00
Dimitrie Stefanescu 92f9d1670b feat(viewer/frontend): various 2022-09-01 09:08:45 +03:00
Dimitrie Stefanescu 8c3366193b feat(viewer/frontend): sets url to comment id when expanding comments 2022-08-31 17:39:06 +03:00
Kristaps Fabians Geikins ecb9f825bb refactor: email verification flow & email template (#967) 2022-08-31 17:11:19 +03:00
Dimitrie Stefanescu 878e97593e feat(viewer/frontend): section box url precision reduced 2022-08-31 15:46:29 +03:00
Dimitrie Stefanescu 3929a1b9d9 feat(viewer/frontend): section box updates and persistance in url query 2022-08-31 15:42:20 +03:00
Dimitrie Stefanescu 3c2aab32be feat(viewer/frontend): section box integrations through state manager + removal of old calls 2022-08-31 14:46:53 +03:00
Dimitrie Stefanescu 82b4a56fac feat(viewer/frontend): viewer real time user bubbles section box & filtering alignment 2022-08-31 12:58:58 +03:00
Dimitrie Stefanescu 29ec687fff feat(viewer/frontend): console logs cleanup 2022-08-31 12:41:56 +03:00
Dimitrie Stefanescu d02f57fcd8 feat(viewer/frontend): minor viewer controls fiddles 2022-08-31 11:28:07 +03:00
Dimitrie Stefanescu 3317f4b922 feat(viewer/frontend): section box controls fe 2022-08-31 10:37:17 +03:00
Dimitrie Stefanescu 27c9834d02 Merge branch 'dim/viewer-redux' into viewer-redux-integration 2022-08-30 19:38:56 +03:00
Dimitrie Stefanescu c3381ae44d feat(viewer/frontend): fixes various edge cases on numeric filters and filter props caching 2022-08-30 19:33:39 +03:00
Dimitrie Stefanescu 06c57d06fe feat(viewer/frontend): setting filters from urls, num/cat + other fe<>viewer integration 2022-08-30 12:39:57 +03:00
AlexandruPopovici 1d38cd6db2 Small changes and fixes 2022-08-29 18:33:22 +03:00
Iain Sproat 23bc801eb0 fix(helm chart): allow egress to auth providers (#970)
* fix(helm chart): allow egress to auth providers
* Increase Azure AD allowlist to match https://docs.microsoft.com/en-us/azure/azure-portal/azure-portal-safelist-urls?tabs=public-cloud
* Allows customisation of azure AD domains
2022-08-29 12:10:37 +01:00
AlexandruPopovici 2e0cb521f8 Removed internal handling of zoom-on-double click. Double clicking now just emits the double click event along with the selection info. Added simple implementation for sandbox and frontend 2022-08-29 11:52:08 +03:00
Gergő Jedlicska 3150763ddc fix(server): put emails behind elevated privileges (#971) 2022-08-27 11:28:38 +02:00
Iain Sproat 278da16e53 fix(helm chart server kubernetes network policy): update CIDR for Apollo (#968)
Apollo responded to our support question, they confirmed that 34.120.83.176/32 is sufficient for
egress to usage-reporting.api.apollographql.com
2022-08-26 17:05:32 +01:00
AlexandruPopovici e0195ab6e6 box argument is optional when setting the section box 2022-08-26 15:20:00 +03:00
AlexandruPopovici e6eb925490 Fixed an issue in preview-service which was making it fail 2022-08-26 15:13:36 +03:00
AlexandruPopovici 3fead597e7 Added reseting the section box after clearing selection 2022-08-26 12:06:05 +03:00
AlexandruPopovici 3813b7752a Added two methods in the API for setting the section box dimensions, one based on inline box and another based on object ids. Removed internal section box dimension setting, this means that the clients need to set the section box size to whatever they want. Addd the feature when you would click on a section box face you can then drag it to resize the section box 2022-08-26 12:03:01 +03:00
AlexandruPopovici afb86dca5c Changed the zoom method to take speckle ids instead of guids, since everyother method in the API that takes ids, takes speckle ids 2022-08-26 10:56:24 +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
Iain Sproat 5aa00784a6 fix(helm chart): allow egress from server to email server (#966)
Network Policies omitted to allow egress to email.  This commit allows egress to email.
2022-08-25 16:00:34 +01:00
Iain Sproat ab0c60ec57 Helm Chart: Network Policies allow server egress to apollo (#965)
* fix(helm chart): allow egress in server Network Policies to Apollo

The Cilium and Kubernetes network policies currently do not allow egress from the server to Apollo
for graphql monitoring.

Kubernetes Network Policies don't allow domain names.  We have an open support ticket with Apollo
Studio to request which CIDR to limit egress to.  Until then, we will need to open egress to
everywhere if a Kubernetes Network Policy is used.
2022-08-25 15:08:25 +01:00
AlexandruPopovici 5dbbefcd19 Added PolarView, which allows us to rotate the camera using polar coordinates. This is used by the preview service currently 2022-08-25 17:04:09 +03:00
AlexandruPopovici a85f76f5ca Added DebugViewer which the sandbox uses so it can access stuff normally not available in the API, for testing and developement 2022-08-25 12:20:05 +03:00
Iain Sproat d6f6a64630 fix(helm chart): remove unnecessary values from helm chart (#964)
* fix(helm chart): remove unused values from helm chart

Previous commit introduced two additional values that are not being used for s3.  This commit
removes them.

* Looks up domain or IP from secret for redis and postgres

- undertakes a kubectl get on the secret.  The user or service account that deploys helm must have permissions to view the secret.
- fix: matchName for domain instead of matchPattern
- fix: typo in protocol

* Only allow monitoring ingress if monitoring is enabled

* Port can be determine from the provided secret
 - updates values.yaml to only require port for postgres and redis for inCluster endpoints
2022-08-25 10:36:15 +02:00
Dimitrie Stefanescu 31c089b546 feat(viewer/frontend): latest changes 2022-08-25 11:17:43 +03:00
Dimitrie Stefanescu 1a6f2c2050 chore(viewer/frontend): cleanup 2022-08-25 10:33:10 +03:00
Dimitrie Stefanescu f378d88c19 feat(viewer/frontend): extra integration legwork 2022-08-25 10:28:48 +03:00
Dimitrie Stefanescu ba5f249cef Merge branch 'viewer-redux-integration' into dim/viewer-redux 2022-08-25 09:33:10 +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
Dimitrie Stefanescu 4901f53497 feat(viewer/frontend): sun/lights controls 2022-08-24 21:54:04 +03:00
Iain Sproat b61f0ffabe Cilium network policies (#954)
* feat(helm chart): deployes Cilium Network Policies when configured

Cilium Network Policies provide more features over regular Kubernetes Network Policies, but Cilium
is not available everywhere.  When selected by an operator, Cilium Network Policies will be deployed
instead of Kubernetes Network Policies.

Fixes https://github.com/specklesystems/speckle-server/issues/913

* Cilium Network Policy for fileimport service.
* tested only for external host.
* Still to test internal pod and external IP.

* Cilium network policy for file import service restricts DNS

* allows egress to service instead of endpoint
* file import service uses service url of speckle-server
* helper functions for server and dns

* DRY the prometheus selector

* CiliumNetworkPolicy for frontend

* CiliumNetworkPolicy for monitoring service

* CiliumNetworkPolicy for preview service

* CiliumNetworkPolicy for test

* CiliumNetworkPolicy for webhook_service

* CiliumNetworkPolicy for Server

* Test should egress to domain, not internally

* Test should be in tests directory to match Helm convention for tests
* Test should explicitly deny ingress from everywhere

* Server needs to egress to canonical domain (i.e. itself)

- DNS and egress for canonical domain added to Server
- As Test also egresses via canonical domain to access Server, we do not require the intra-cluster ingress to the server from the test pod
- Explicitly deny all egress from frontend

* WIP update to schema.json

* Breaking Change: inCluster network policies supported for cilium

* Breaking change: kubernetes network policy podSelector and namespaceSelector are now at a different level
* Updates schema.json

* add notes to remove egress once bug is fixed
2022-08-24 17:25:08 +02: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
Iain Sproat 56d0d54bca refactor(helm chart): explicitly define the deployment rollout strategy (#963)
Partially addresses https://github.com/specklesystems/speckle-server/issues/925
2022-08-24 17:21:01 +02: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
Kristaps Fabians Geikins 651dee0977 feat(server): stream discoverability flag & queries (#948) 2022-08-24 13:46:24 +03:00
Kristaps Fabians Geikins a170b1d163 fix: relaxed engine constraint for libs (#960) 2022-08-24 12:26:30 +03:00
Dimitrie Stefanescu 0e9ea3f740 feat(viewer/frontend): wip sun/lights controls 2022-08-24 12:16:12 +03:00
Kristaps Fabians Geikins 774176246e feat: pretty password reset email + bugfixes (#939) 2022-08-24 11:59:30 +03:00
Kristaps Fabians Geikins 134daa0738 feature(frontend): dl manager link now leads to releases page (#956)
* feature(frontend): dl manager link now leads to releases page

* fix: removed unnecessary mixpanel invocation
2022-08-24 10:36:22 +02:00
Dimitrie Stefanescu 506d4472f8 feat(viewer/frontend): wip numeric based filters 2022-08-24 11:10:41 +03:00