Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Animation #1383

Open
BobbyMoore opened this issue Jan 19, 2025 · 3 comments
Open

Loading Animation #1383

BobbyMoore opened this issue Jan 19, 2025 · 3 comments
Labels
question Further information is requested

Comments

@BobbyMoore
Copy link

Problem statement
When creating new audits, or similar, there is a small delay. In my environment, on a locally hosted docker, this can be 2-5 seconds. I am not sure during this time if the request is in progress, leading to poor UX.

Expected behaviour

  1. Small loading circle (I am pretty sure under audit, apply selected controls has a loading function)
  2. Lock/freeze UI pane until submit has completed.

Repeat

  1. Create audit
  2. See few second delay

Additional context
My server is not the best, but it's no slacker - but am fully prepared for it to be my hardware.
16-core Xeon 1541, 48GB RAM.

@BobbyMoore BobbyMoore added the question Further information is requested label Jan 19, 2025
@ab-smith
Copy link
Contributor

Hello @BobbyMoore and thank you for the feedback,
few points: are you using the default docker or a specific variant? What are the frameworks that you've loaded?

@BobbyMoore
Copy link
Author

Hi @ab-smith

I am using docker. One abnormality that might be my fault was I wanted to present CISO Asst. on http so I removed caddy and configured docker as follows:

` backend:
container_name: backend
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost,[external-host],192.168..
- CISO_ASSISTANT_URL=https://[external-host]
- DJANGO_DEBUG=False
- AUTH_TOKEN_TTL=7200
ports:
- 8000:8000
volumes:
- ./db:/code/db

frontend:
container_name: frontend
environment:
- PUBLIC_BACKEND_API_URL=http://backend:8000/api
- PUBLIC_BACKEND_API_EXPOSED_URL=https://[external-host]/api
# - PROTOCOL_HEADER=x-forwarded-proto
# - HOST_HEADER=x-forwarded-host
ports:
- 3000:3000
image: ghcr.io/intuitem/ciso-assistant-community/frontend:latest
depends_on:
- backend`

I am then using Cloudflare tunnel to present the API service. Could this be the cause?

I don't have internal DNS and even /etc/hosts on the tunnel wasn't working to present externally.

@eric-intuitem
Copy link
Collaborator

Audit creation clearly needs some optimisation, the problem is not on your side. We'll work on that soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants