Skip to content

Commit 699aef1

Browse files
authored
merge develop into main (#84)
2 parents c301edc + daa5291 commit 699aef1

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## [1.11.1] - 2024-11-26
9+
### Fixed
10+
- User survey responses not accessible [#78](https://github.com/rokwire/surveys-building-block/issues/78)
11+
812
## [1.11.0] - 2024-10-07
913
### Added
1014
- Consolidate the information, and make it accessible with a single API call [#79](https://github.com/rokwire/surveys-building-block/issues/79)

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Patches for **Surveys Building Block** in this repository will only be applied t
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 1.11.0 | :white_check_mark: |
10-
| < 1.11.0 | :x: |
9+
| 1.11.1 | :white_check_mark: |
10+
| < 1.11.1 | :x: |
1111

1212
## Reporting a Bug or Vulnerability
1313

driver/web/apis_admin.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ func (h AdminAPIsHandler) createSurvey(l *logs.Log, r *http.Request, claims *tok
296296
items.CreatorID = claims.Subject
297297
items.OrgID = claims.OrgID
298298
items.AppID = claims.AppID
299-
items.Type = "user"
299+
if items.Type == "" {
300+
items.Type = "user"
301+
}
300302

301303
item := surveyRequestToSurvey(items)
302304

@@ -330,7 +332,9 @@ func (h AdminAPIsHandler) updateSurvey(l *logs.Log, r *http.Request, claims *tok
330332
items.CreatorID = claims.Subject
331333
items.OrgID = claims.OrgID
332334
items.AppID = claims.AppID
333-
items.Type = "user"
335+
if items.Type == "" {
336+
items.Type = "user"
337+
}
334338

335339
item := updateSurveyRequestToSurvey(items, id)
336340

driver/web/docs/gen/def.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: Rokwire Surveys Building Block API
44
description: Surveys Building Block API Documentation
5-
version: 1.11.0
5+
version: 1.11.1
66
servers:
77
- url: 'https://api.rokwire.illinois.edu/surveys'
88
description: Production server

driver/web/docs/index.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: Rokwire Surveys Building Block API
44
description: Surveys Building Block API Documentation
5-
version: 1.11.0
5+
version: 1.11.1
66
servers:
77
- url: 'https://api.rokwire.illinois.edu/surveys'
88
description: Production server

0 commit comments

Comments
 (0)