Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Add worker details to worker inspector #1382

Merged
merged 7 commits into from
Jun 4, 2020

Conversation

jamiebrynes7
Copy link
Contributor

@jamiebrynes7 jamiebrynes7 commented Jun 3, 2020

Description

A small section for general worker information:

  • Worker Type
  • Worker ID
  • Worker flags

image

Sadly Unity doesn't have inline-flex as an option, so we can't have the worker flags section expand up to a given size with flex. For expediency's sake, this is just set to a fixed height percentage. The worker flags section will have a scrollbar if the contents are too large.

Unity also doesn't have the ability to define what happens for text overflows in an element, so very very long worker flags can overflow the container.

Tests

Ran it on a local deployment w/ some worker flags, and some without. Swapping worlds, etc.

Documentation

  • Big changelog for this and the previous PRs

@improbable-prow-robot improbable-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files. labels Jun 3, 2020
@improbable-prow-robot improbable-prow-robot added the A: core Area: Core GDK label Jun 3, 2020
@jamiebrynes7 jamiebrynes7 force-pushed the feature/worker-inspector-worker-info branch from a2a8d38 to 2e8f4fc Compare June 3, 2020 14:49
@jamiebrynes7 jamiebrynes7 force-pushed the feature/worker-inspector-worker-info branch from 9372838 to f8774f1 Compare June 4, 2020 10:01
@jamiebrynes7 jamiebrynes7 marked this pull request as ready for review June 4, 2020 10:05
@improbable-prow-robot improbable-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 4, 2020
container.AddToClassList("flag-element-container");

var key = new Label { name = FlagKeyName, };

Copy link
Contributor

Choose a reason for hiding this comment

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

Why all the whitespace here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The initializer was spanning multiple lines, but then I linted and it collapsed it. 🤷‍♂️

@sonarcloud
Copy link

sonarcloud bot commented Jun 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@jamiebrynes7 jamiebrynes7 merged commit 738f0a7 into develop Jun 4, 2020
@improbable-prow-robot improbable-prow-robot deleted the feature/worker-inspector-worker-info branch June 4, 2020 16:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: core Area: Core GDK jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants