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

Render primitive schema data & enums in the worker inspector #1387

Merged
merged 8 commits into from
Jun 10, 2020

Conversation

jamiebrynes7
Copy link
Contributor

@jamiebrynes7 jamiebrynes7 commented Jun 8, 2020

Description

This PR adds a subset of the component data rendering to the Worker Inspector. It adds support for all schema primitives (except for Entity) and schema enums. Later PRs will add

  • user defined types
  • schema collections (lists, maps, and options)
  • the Entity schema type

Note in f081633 I turned quite a few things public. Discussed a strategy with Paul and will raise a ticket to go back and refactor these to make using them easier in the modular codegen world.

image

Tests

Eyeball test. Will conduct more exhaustive tests once all the data types are in

@improbable-prow-robot improbable-prow-robot added jira/no-ticket Indicates a PR has no corresponding JIRA ticket A: tooling Area: Tooling size/L Denotes a PR that changes 150-299 lines, ignoring generated files. labels Jun 8, 2020
@jamiebrynes7 jamiebrynes7 force-pushed the feature/worker-inspector-primitive-data branch from c9b1c5a to a9209c2 Compare June 8, 2020 15:22
@jamiebrynes7 jamiebrynes7 force-pushed the feature/worker-inspector-primitive-data branch from a9209c2 to fc98ef9 Compare June 9, 2020 10:32
}

var humanReadableName = Formatting.SnakeCaseToHumanReadable(fieldDetails.Name);
yield return $"{fieldDetails.CamelCaseName}Field = new {uiType}(\"{humanReadableName}\");";
Copy link
Contributor

Choose a reason for hiding this comment

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

Extract the string into a variable: {fieldDetails.CamelCaseName}Field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've refactored this a little bit in the user-types branch, will apply this suggestion there 👍

@sonarcloud
Copy link

sonarcloud bot commented Jun 10, 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

No Coverage information No Coverage information
No Duplication information No Duplication information

@jamiebrynes7 jamiebrynes7 merged commit 8330867 into develop Jun 10, 2020
@improbable-prow-robot improbable-prow-robot deleted the feature/worker-inspector-primitive-data branch June 10, 2020 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: tooling Area: Tooling 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