Skip to content

Commit

Permalink
rename HookEnpoint -> CQCHookEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 10, 2024
1 parent f7699c2 commit 121de8f
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/AVPRClient/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ this AVPRClient.ValidationPackage validationPackage
Microsoft.FSharp.Core.FSharpOption<bool>.None,
validationPackage.Authors.AsIndexType(),
validationPackage.Tags.AsIndexType(),
validationPackage.ReleaseNotes
validationPackage.ReleaseNotes,
Microsoft.FSharp.Core.FSharpOption<string>.None
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/AVPRIndex/AVPRIndex.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/RELEASE_NOTES.md"))</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersion>0.1.1</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions src/AVPRIndex/Domain.fs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module Domain =
member val Authors: Author [] = Array.empty<Author> with get,set
member val Tags: OntologyAnnotation [] = Array.empty<OntologyAnnotation> with get,set
member val ReleaseNotes = "" with get,set
member val HookEndpoint = "" with get,set
member val CQCHookEndpoint = "" with get,set

override this.GetHashCode() =
hash (
Expand All @@ -120,7 +120,7 @@ module Domain =
this.Authors,
this.Tags,
this.ReleaseNotes,
this.HookEndpoint
this.CQCHookEndpoint
)

override this.Equals(other) =
Expand All @@ -137,7 +137,7 @@ module Domain =
this.Authors,
this.Tags,
this.ReleaseNotes,
this.HookEndpoint
this.CQCHookEndpoint
) = (
vpm.Name,
vpm.Summary,
Expand All @@ -149,7 +149,7 @@ module Domain =
vpm.Authors,
vpm.Tags,
vpm.ReleaseNotes,
vpm.HookEndpoint
vpm.CQCHookEndpoint
)
| _ -> false

Expand All @@ -164,7 +164,7 @@ module Domain =
?Authors: Author [],
?Tags: OntologyAnnotation [],
?ReleaseNotes,
?HookEndpoint
?CQCHookEndpoint
) =
let tmp = ValidationPackageMetadata(
Name = name,
Expand All @@ -179,7 +179,7 @@ module Domain =
Authors |> Option.iter (fun x -> tmp.Authors <- x)
Tags |> Option.iter (fun x -> tmp.Tags <- x)
ReleaseNotes |> Option.iter (fun x -> tmp.ReleaseNotes <- x)
HookEndpoint |> Option.iter (fun x -> tmp.HookEndpoint <- x)
CQCHookEndpoint |> Option.iter (fun x -> tmp.CQCHookEndpoint <- x)

tmp

Expand Down
4 changes: 4 additions & 0 deletions src/AVPRIndex/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.1.1

Add `CQCHookEndpoint` field to `ValidationPackageMetadata`

## v0.1.0

Add support for in-package frontmatter bindings. Enables re-use of the frontmatter inside the package code
Expand Down
2 changes: 1 addition & 1 deletion tests/IndexTests/DomainTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ module ValidationPackageMetadata =
)
|],
ReleaseNotes = "releasenotes",
HookEndpoint = "hookendpoint"
CQCHookEndpoint = "hookendpoint"
)
Assert.Equivalent(ValidationPackageMetadata.allFields, actual)
12 changes: 6 additions & 6 deletions tests/IndexTests/ReferenceObjects.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module ValidationPackageMetadata =
Authors = [|Author.allFields|],
Tags = [|OntologyAnnotation.allFields|],
ReleaseNotes = "releasenotes",
HookEndpoint = "hookendpoint"
CQCHookEndpoint = "hookendpoint"
)

module Frontmatter =
Expand Down Expand Up @@ -114,7 +114,7 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
---
*)""" .ReplaceLineEndings("\n")

Expand Down Expand Up @@ -147,7 +147,7 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
""" .ReplaceLineEndings("\n")

let invalidStartFrontmatter = """(
Expand Down Expand Up @@ -259,7 +259,7 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
---
*)\"\"\"" .ReplaceLineEndings("\n")

Expand Down Expand Up @@ -292,7 +292,7 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
""" .ReplaceLineEndings("\n")

let invalidStartFrontmatter = "let [<Literal>]PACKAGE_METADATA = \"\"\"
Expand Down Expand Up @@ -395,7 +395,7 @@ It does it very fast, it does it very swell.
- does the thing
- does it well
""".ReplaceLineEndings("\n"),
HookEndpoint = "https://hook.com"
CQCHookEndpoint = "https://hook.com"
)

let invalidMissingMandatoryFrontmatter =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
---
*)"""
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ ReleaseNotes: |
- initial release
- does the thing
- does it well
HookEndpoint: https://hook.com
CQCHookEndpoint: https://hook.com
---
*)

0 comments on commit 121de8f

Please sign in to comment.