Skip to content

Commit

Permalink
ON-45075 # Add disableAutosave to Form
Browse files Browse the repository at this point in the history
  • Loading branch information
kizaonline committed Nov 22, 2024
1 parent bb5b551 commit 7fd860c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Setup .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Setup .NET SDK 9.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "9.0.x"
- uses: microsoft/DevSkim-Action@v1
- uses: github/codeql-action/upload-sarif@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Setup .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Setup .NET SDK 9.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "9.0.x"
- uses: microsoft/DevSkim-Action@v1
- uses: github/codeql-action/upload-sarif@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

### Added

- `disableAutosave` to `Form`

### Added

- `nodes` and `type` to `FormApprovalFlowInstanceStep` and `FormApprovalStep`

## [9.0.0] - 2024-11-13
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FormsClient formsClient = new FormsClient(ACCESS_KEY, SECRET_KEY, TenantName.ONE

### Prerequisites

- .Net runtime installed (at least one of .Net 6.0, .Net 7.0)
- .Net runtime installed (at least one of .Net 8.0, .Net 9.0)

## Security linter

Expand All @@ -31,7 +31,7 @@ SECRET_KEY=YOUR_SECRET_KEY

### Target frameworks

By default the tests will run against runtimes .Net 6.0, .Net 7.0 and .Net 8.0
By default the tests will run against runtimes .Net 8.0, and .Net 9.0
You can modify the `<TargetFramework>` value in ./OneBlink.SDK.Tests/OneBlink.SDK.Tests.csProj to the runtime/s you have available eg. `net8.0`

### Running tests
Expand Down Expand Up @@ -90,7 +90,7 @@ dotnet test
#### Prerequisites
- .Net SDK installed (at least one of .Net 6.0, .Net 7.0)
- .Net SDK installed (at least one of .Net 8.0, .Net 9.0)
1. Clone this repository
Expand Down
2 changes: 1 addition & 1 deletion OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<RootNamespace>unit_tests</RootNamespace>

<IsPackable>false</IsPackable>
Expand Down
8 changes: 7 additions & 1 deletion OneBlink.SDK/models/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public Form(
List<string> customCssClasses = default,
Guid? pointAddressEnvironmentId = null,
bool? allowGeoscapeAddresses = null,
FormEnableSubmission enableSubmission = null
FormEnableSubmission enableSubmission = null,
bool? disableAutosave = null
)
{
if (id.HasValue)
Expand Down Expand Up @@ -153,6 +154,7 @@ public Form(
this.pointAddressEnvironmentId = pointAddressEnvironmentId ?? null;
this.allowGeoscapeAddresses = allowGeoscapeAddresses ?? null;
this.enableSubmission = enableSubmission;
this.disableAutosave = disableAutosave;
}
public long id
{
Expand Down Expand Up @@ -302,5 +304,9 @@ public FormEnableSubmission enableSubmission
{
get; set;
}
public bool? disableAutosave
{
get; set;
}
}
}
1 change: 1 addition & 0 deletions docs/models/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
| `allowGeoscapeAddresses` | No | `bool?` | Optional configuration to allow use of Geoscape elements on the form | `null` |
| `slug` | No | `string` | Unique domain safe text to identify the form | `null` |
| `enableSubmission` | No | `FormEnableSubmission` | Conditionally enable form submission | `null` |
| `disableAutosave` | No | `bool?` | Optionally disable autosave | `null` |

### Other properties

Expand Down

0 comments on commit 7fd860c

Please sign in to comment.