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

LF : Fix/Clean some LF related TODOs #8387

Merged
merged 6 commits into from
Jan 7, 2021
Merged

LF : Fix/Clean some LF related TODOs #8387

merged 6 commits into from
Jan 7, 2021

Conversation

remyhaemmerle-da
Copy link
Collaborator

CHANGELOG_BEGIN
CHANGELOG_END

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

Copy link
Contributor

@stefanobaghino-da stefanobaghino-da left a comment

Choose a reason for hiding this comment

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

Had a look at the navigator part, should we add a test for that?

Copy link
Contributor

@hurryabit hurryabit left a comment

Choose a reason for hiding this comment

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

Except for the navigator test, which I can't really judge, this looks good to me. If @stefanobaghino-da and @rautenrieth-da are happy with the changes there, let's merge. Thank you.

def twoDifferentVersions =
for {
v1 <- Gen.oneOf(postV10versions)
v2 <- Gen.oneOf(postV10versions.filter(_ != v1))
Copy link
Contributor

Choose a reason for hiding this comment

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

How about

Suggested change
v2 <- Gen.oneOf(postV10versions.filter(_ != v1))
v2 <- Gen.oneOf(postV10versions.filter(_ > v1))

and remove the call to inIncreasingOrder below? This seems to express the intent more clearly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea.

# FixMe: https://github.com/digital-asset/daml/issues/2289
# change version to lf_latest_version when freezing numeric in the next language version
target = lf_dev_version,
target = lf_latest_version,
Copy link
Contributor

Choose a reason for hiding this comment

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

Numeric is already in DAML-LF 1.8, isn't it? So, I guess we just missed this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor

@rautenrieth-da rautenrieth-da left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to add the Navigator tests!

@remyhaemmerle-da remyhaemmerle-da merged commit 440b17a into main Jan 7, 2021
@remyhaemmerle-da remyhaemmerle-da deleted the remy-lf-todos branch January 7, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants