Skip to content

Only log ygg logs in console #4273

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

Merged
merged 4 commits into from
Jul 15, 2025
Merged

Only log ygg logs in console #4273

merged 4 commits into from
Jul 15, 2025

Conversation

samaradel
Copy link
Contributor

@samaradel samaradel commented Jul 2, 2025

Description

Only log ygg logs in the console, not in the logs dialog, while deploying

Changes

Log the ygg logs in the console only

Related Issues

Tested Scenarios

  • Deploy a worker for k8s, for example and check ygg logs info in the dialog and in the console

Documentation PR

For UI changes, Please provide the Documentation PR on info_grid

To consider

Preliminary Checks:

  • Preliminary Checks
    • Does it completely address the issue linked?
    • What about edge cases?
    • Does it meet the specified acceptance criteria?
    • Are there any unintended side effects?
    • Does the PR adhere to the team's coding conventions, style guides, and best practices?
    • Does it integrate well with existing features?
    • Does it impact the overall performance of the application?
    • Are there any bottlenecks or slowdowns?
    • Has it been optimized for efficiency?
    • Has it been adequately tested with unit, integration, and end-to-end tests?
    • Are there any known defects or issues?
    • Is the code well-documented?
    • Are changes to documentation reflected in the code?

UI Checks:

  • UI Checks
    • If a UI design is provided/ does it follow it?
    • Does every button work?
    • Is the data displayed logical? Is it what you expected?
    • Does every validation work?
    • Does this interface feel intuitive?
    • What about slow network? Offline?
    • What if the gridproxy/graphql/chain is failing?
    • What would a first time user have a hard time navigating here?

Code Quality Checks:

  • Code Quality Checks
    • Code formatted/linted? Are there unused imports? .. etc
    • Is there redundant/repeated code?
    • Are there conditionals that are always true or always false?
    • Can we write this more concisely?
    • Can we reuse this code? If yes, where?
    • Will the changes be easy to maintain and update in the future?
    • Can this code become too complex to understand for other devs?
    • Can this code cause future integration problems?

Testing Checklist

  • Does it Meet the specified acceptance criteria.
  • Test if changes can affect any other functionality.
  • Tested with unit, integration, and end-to-end tests.
  • Tested the un-happy path and rollback scenarios.
  • Documentation updated to meet the latest changes.
  • Check automated tests working successfully with the changes.
  • Can be covered by automated tests.

General Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring
  • Screenshots/Video attached (needed for UI changes)

Copy link
Contributor

@amiraabouhadid amiraabouhadid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still shows up in logs somehow
Screenshot 2025-07-02 at 20 43 21
shows up in console correctly
Screenshot 2025-07-02 at 20 40 31
please check if logs is called somewhere else with the network interfaces

@samaradel
Copy link
Contributor Author

The change I made is to prevent emits and use the console instead, so it will not be anywhere else

@samaradel samaradel requested a review from amiraabouhadid July 7, 2025 10:36
0oM4R
0oM4R previously approved these changes Jul 10, 2025
Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine, please consider handling other logs that should not appear
Or you can open an issue for it

image

@samaradel
Copy link
Contributor Author

Works fine, please consider handling other logs that should not appear Or you can open an issue for it

image

@AhmedHanafy725, should be handled too

@amiraabouhadid
Copy link
Contributor

amiraabouhadid commented Jul 13, 2025

The change I made is to prevent emits and use the console instead, so it will not be anywhere else

I understand but why is ygg still showing in the console for deployments that dont have it is what I am asking
as I understand from the linked issue, ygg should not show even in the console for deployments that dont have ygg network interface ...
confusion resolved in scrum, thanks samar!

amiraabouhadid
amiraabouhadid previously approved these changes Jul 14, 2025
@samaradel samaradel marked this pull request as draft July 15, 2025 09:54
@samaradel samaradel marked this pull request as ready for review July 15, 2025 10:10
@samaradel samaradel dismissed stale reviews from amiraabouhadid and 0oM4R July 15, 2025 10:11

changes added

@samaradel samaradel merged commit 0896090 into development Jul 15, 2025
12 checks passed
@samaradel samaradel deleted the dev_ygg_logs branch July 15, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants