Skip to content

Use VIEW alias for an entity kind#194

Merged
alexander-yevsyukov merged 4 commits intomasterfrom
use-view-alias
May 4, 2026
Merged

Use VIEW alias for an entity kind#194
alexander-yevsyukov merged 4 commits intomasterfrom
use-view-alias

Conversation

@alexander-yevsyukov
Copy link
Copy Markdown
Contributor

This PR updates the WhenField proto type so that it uses VIEW alias for the (entity).kind. It would read simpler in the Validation documentation.

Also, the PR shortens the GitHub workflow when building on Windows.

Copilot AI review requested due to automatic review settings May 4, 2026 19:26
@alexander-yevsyukov alexander-yevsyukov self-assigned this May 4, 2026
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review May 4, 2026 19:26
@alexander-yevsyukov alexander-yevsyukov requested a review from armiol May 4, 2026 19:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the validation model metadata so WhenField is declared with the VIEW entity-kind alias instead of PROJECTION, and also refreshes release metadata/versioned generated files. In the broader codebase, this affects how the (when) validation option’s view model is described in the proto schema used by the validation toolchain.

Changes:

  • Switched WhenField in views.proto from PROJECTION to the VIEW alias for (entity).kind.
  • Bumped the project snapshot version from 2.0.0-SNAPSHOT.239 to .240.
  • Renamed the Windows CI job display name and refreshed the generated dependency report.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
version.gradle.kts Updates publish version to the new snapshot.
validation/src/main/proto/spine/tools/time/validation/views.proto Changes WhenField entity-kind metadata from PROJECTION to VIEW.
pom.xml Updates Maven project version to match the new snapshot.
dependencies.md Refreshes generated dependency report headers/timestamps for the new version.
.github/workflows/build-on-windows.yml Renames the Windows CI job label.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// A view of a field that is marked with `(when)` option.
message WhenField {
option (entity).kind = PROJECTION;
option (entity).kind = VIEW;
build:
runs-on: windows-latest
name: Build and test on Windows
name: Build on Windows
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.88%. Comparing base (2fc3274) to head (7b7bf62).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #194   +/-   ##
=========================================
  Coverage     83.88%   83.88%           
  Complexity      304      304           
=========================================
  Files            60       60           
  Lines          1086     1086           
  Branches         46       46           
=========================================
  Hits            911      911           
  Misses          165      165           
  Partials         10       10           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexander-yevsyukov alexander-yevsyukov merged commit f8d6d30 into master May 4, 2026
11 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the use-view-alias branch May 4, 2026 19:53
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