Skip to content
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!: change 'version' to 'specVersion' #1086

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

lance
Copy link
Member

@lance lance commented Jun 28, 2022

Changes func create to write the last migration value to func.yaml when a new function is created, and modifies the name in the func.yaml file to be 'specVersion' instead of 'version' to help reduce confusion.

Adds a migration, and a LastMigration() utility function.

Fixes: #861

Signed-off-by: Lance Ball lball@redhat.com

Modifies func.yaml to use the field 'specVersion' instead of 'version' to reduce confusion about its meaning

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 28, 2022
@lance lance marked this pull request as draft June 29, 2022 00:47
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 29, 2022
@lance
Copy link
Member Author

lance commented Jun 29, 2022

Converting to draft so I can figure out why other migration tests fail.

@codecov
Copy link

codecov bot commented Jun 29, 2022

Codecov Report

Merging #1086 (64534db) into main (5f8c018) will decrease coverage by 0.00%.
The diff coverage is 67.85%.

@@            Coverage Diff             @@
##             main    #1086      +/-   ##
==========================================
- Coverage   47.25%   47.25%   -0.01%     
==========================================
  Files          59       59              
  Lines        8028     8039      +11     
==========================================
+ Hits         3794     3799       +5     
- Misses       3853     3857       +4     
- Partials      381      383       +2     
Impacted Files Coverage Δ
function.go 58.99% <0.00%> (-1.26%) ⬇️
function_migrations.go 77.63% <70.83%> (-5.19%) ⬇️
client.go 61.00% <100.00%> (+0.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f8c018...64534db. Read the comment docs.

@lance lance marked this pull request as ready for review June 29, 2022 12:53
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 29, 2022
@lance lance requested review from lkingland and zroubalik and removed request for lkingland June 29, 2022 12:53
Changes `func create` to write the last migration value to func.yaml
when a new function is created, and modifies the name in the func.yaml
file to be 'specVersion' instead of 'version' to help reduce confusion.

Adds a migration, and a LastMigration() utility function.

Fixes: knative#861

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance changed the title feat!: change 'version' to 'migration' feat!: change 'version' to 'specVersion' Jun 29, 2022
client.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

Sorry to be pain in the ass, but there are a few nits that needs to be renamed.

Other than that it is looking great!

function_migrations_unit_test.go Outdated Show resolved Hide resolved
function_migrations_unit_test.go Outdated Show resolved Hide resolved
function_migrations_unit_test.go Outdated Show resolved Hide resolved
function_migrations.go Outdated Show resolved Hide resolved
Signed-off-by: Lance Ball <lball@redhat.com>
Copy link
Member

@lkingland lkingland left a comment

Choose a reason for hiding this comment

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

/lgtm !

client.go Show resolved Hide resolved
Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2022
@knative-prow
Copy link

knative-prow bot commented Jul 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance, lkingland, zroubalik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [lance,lkingland,zroubalik]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit 416ada6 into knative:main Jul 1, 2022
@lance lance deleted the 861-migration-sanity branch July 1, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version in func.yaml is initially 0.0.0
3 participants