Skip to content

Commit 3ac6f95

Browse files
authored
Merge pull request #87 from contentstack/master
Merging master to DX-1473
2 parents d75f8a3 + f3bcaa3 commit 3ac6f95

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

.github/workflows/jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
project: ${{ secrets.JIRA_PROJECT }}
2222
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
2323
summary: |
24-
${{ github.event.pull_request.title }}
24+
Snyk | Vulnerability | ${{ github.event.repository.name }} | ${{ github.event.pull_request.title }}
2525
description: |
2626
PR: ${{ github.event.pull_request.html_url }}
2727

.github/workflows/sca-scan.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@ jobs:
66
security-sca:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@master
11-
- name: Setup .NET Core @ Latest
12-
uses: actions/setup-dotnet@v1
13-
with:
14-
dotnet-version: "7.0.x"
15-
- name: Run Dotnet Restore
16-
run: |
17-
dotnet restore
9+
- uses: actions/checkout@master
1810
- name: Run Snyk to check for vulnerabilities
1911
uses: snyk/actions/dotnet@master
2012
env:
2113
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2214
with:
23-
args: --file=Contentstack.Core/obj/project.assets.json --fail-on=all
15+
args: --fail-on=all

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Version: 2.20.0
2+
#### Date: Dec-19-2024
3+
4+
##### Fix:
5+
- Reset `LivePreviewConfig` to prevent overwriting fetched data with live preview data during regular fetch calls.
6+
17
### Version: 2.19.0
28
#### Date: Nov-30-2024
39

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @contentstack/security-admin
1+
* @contentstack/security-admin

Contentstack.Core/ContentstackClient.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ public void SetHeader(string key, string value)
554554
/// </example>
555555
public async Task LivePreviewQueryAsync(Dictionary<string, string> query)
556556
{
557+
this.LivePreviewConfig.LivePreview = null;
558+
this.LivePreviewConfig.ContentTypeUID = null;
559+
this.LivePreviewConfig.EntryUID = null;
560+
557561
if (query.Keys.Contains("content_type_uid"))
558562
{
559563
string contentTypeUID = null;
@@ -571,8 +575,6 @@ public async Task LivePreviewQueryAsync(Dictionary<string, string> query)
571575
string hash = null;
572576
query.TryGetValue("live_preview", out hash);
573577
this.LivePreviewConfig.LivePreview = hash;
574-
} else {
575-
this.LivePreviewConfig.LivePreview = "init";
576578
}
577579
this.LivePreviewConfig.PreviewResponse = await GetLivePreviewData();
578580
}

Contentstack.Core/Internals/HttpRequestHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task<string> ProcessRequest(string Url, Dictionary<string, object>
4848
var request = (HttpWebRequest)WebRequest.Create(uri);
4949
request.Method = "GET";
5050
request.ContentType = "application/json";
51-
request.Headers["x-user-agent"]="contentstack-delivery-dotnet/2.19.0";
51+
request.Headers["x-user-agent"]="contentstack-delivery-dotnet/2.20.0";
5252
request.Timeout = timeout;
5353

5454
if (proxy != null)

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.19.0</Version>
3+
<Version>2.20.0</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)