-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(ee): serve frontend pages with query-service #6696
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 005822e in 1 minute and 12 seconds
More details
- Looked at
280
lines of code in9
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. ee/query-service/app/server.go:111
- Draft comment:
Theweb
parameter is not used in theNewServer
function. If it's not needed, consider removing it to avoid confusion. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. ee/query-service/app/server.go:342
- Draft comment:
Theweb
parameter is not used in thecreatePublicServer
function. If it's not needed, consider removing it to avoid confusion. - Reason this comment was not posted:
Marked as duplicate.
3. ee/query-service/main.go:189
- Draft comment:
Theweb
parameter is not used in theNewServer
function. If it's not needed, consider removing it to avoid confusion. - Reason this comment was not posted:
Marked as duplicate.
4. ee/query-service/app/server.go:293
- Draft comment:
Theweb
parameter is not used in thecreatePublicServer
function. If it's not needed, consider removing it to avoid confusion. - Reason this comment was not posted:
Marked as duplicate.
5. ee/query-service/Dockerfile:27
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values to maintain consistency in design and theming. This applies to the frontend build files being copied here. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_ZojOiSXDToIOAxFp
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 3d002f3 in 35 seconds
More details
- Looked at
22
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. Makefile:131
- Draft comment:
Thebuild-push-ee-query-service
target no longer depends onbuild-frontend-static
. Consider adding it back if the frontend static files are required for the EE query service docker image. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment appears to be raising a concern about a missing dependency, but it's actually a false alarm. The dependency wasn't removed - it was just moved to a different target that's still in the dependency chain. build-push-ee-query-service calls build-push-query-service which depends on build-query-service-static-all which now includes build-frontend-static.
I could be wrong about the dependency chain - there might be some make variables or conditional execution that changes the behavior in ways not obvious from just reading the Makefile.
The dependency chain is clear in the Makefile, and the frontend static files will still be built as part of the overall process, just at a different stage.
The comment should be deleted because it raises a false concern - the frontend static files are still being built as part of the dependency chain, just at a different stage.
2. Makefile:101
- Draft comment:
Avoid using inline commands for building frontend static files. Consider using a separate script or configuration file to manage these commands. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_celGKh34zJA3njiM
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 5b52fdd in 12 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. Makefile:106
- Draft comment:
Ensure thatbuild-frontend-static
is included in all relevant targets that depend on frontend assets. This change is correctly applied here, but verify other targets likebuild-push-query-service
andbuild-query-service-static-all
for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The change in the Makefile is to includebuild-frontend-static
in thebuild-query-service-amd64
target. This ensures that the frontend static files are built before the query service docker image is built. This change seems correct given the PR description, but I need to ensure that this change is consistently applied across similar targets.
2. Makefile:106
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. - Reason this comment was not posted:
Confidence changes required:0%
The Makefile does not have any issues related to the rules provided. It does not contain any inline styles, hardcoded colors, or inappropriate file structures. The changes made are consistent with the existing structure and do not introduce any new issues.
Workflow ID: wflow_HOaSZNgAa2jqGhPc
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Summary
Serve frontend pages with query-service
Related Issues / PR's
Screenshots
NA
Affected Areas and Manually Tested Areas
Important
Serve frontend pages using query-service by integrating web package and updating Docker and configuration files.
query-service
by integratingweb
package inserver.go
andmain.go
.defaults.yaml
for web serving.Dockerfile
to copy frontend build to/etc/signoz/web/
.Makefile
to includebuild-frontend-static
inbuild-push-ee-query-service
target.web
configuration toconfig.go
andunmarshaler.go
.unmarshaler_test.go
to testinstrumentation
config unmarshalling.push.yaml
to create.env
file with secrets for frontend.This description was created by for 5b52fdd. It will automatically update as commits are pushed.