Skip to content

Commit 12e9e16

Browse files
authored
Merge pull request #12 from NASA-AMMOS/release/v4-1-0
Release v4.1.0
2 parents 21e30d5 + c77204c commit 12e9e16

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# 4.0.0 to 4.1.0
2+
3+
This document describes the upgrade instructions from `4.0.0` to `4.1.0`.
4+
5+
## Configuration changes
6+
7+
### Cookie forwarding for actions
8+
9+
New **optional** environment variables have been added to support forwarding browser cookies (e.g., SSO session tokens) to **actions** as secrets. If you do not need this feature, no changes are required. To enable cookie forwarding, you must add the following to your docker-compose file:
10+
11+
```yaml
12+
aerie_ui:
13+
environment:
14+
PUBLIC_ACTION_INCLUDE_CREDENTIALS: 'true' # include browser cookies in action server requests
15+
16+
aerie_action:
17+
environment:
18+
ACTION_COOKIE_NAMES: 'ssosession' # comma-separated list of cookie names to forward
19+
ACTION_CORS_ALLOWED_ORIGIN: 'https://YOUR_HOST_NAME' # origin of your PlanDev UI (required for cross-origin)
20+
```
21+
22+
Forwarded cookies are available in action code under actionsAPI.config.SECRETS.cookies:
23+
24+
```js
25+
const ssoToken = actionsAPI.config.SECRETS.cookies.ssosession;
26+
```
27+
28+
See the [Actions documentation](/sequencing/actions/#accessing-secrets-in-actions) for more details on cookie requirements and secrets in actions.
29+
30+
## Other changes
31+
32+
### PlanDev: Fixed issues with procedure generation
33+
PlanDev v4.0.0 contained some regressions with procedural constraints and goals - namely, some `static` fields were incorrectly being included as procedure parameters in the JAR, and the JAR was incorrectly named `<NAME>Mapper.jar` instead of just `<NAME>.jar`. These have both been fixed in this release
34+
35+
### SeqDev: `.seq.json` filetype association
36+
37+
For the SeqDev editor, we have changed the default association for `.seq.json` files so they are edited as `JSON` files rather than `sequence` files, since SeqJson is usually an `outputFormat` rather than an `inputFormat`. However, since this is a user-configurable database setting, existing users will need to update it if they want this change. In Hasura/Postgres, update the table `ui.file_extension_content_type` of the row where `file_extension = .seq.json` to have `content_type` value of `JSON`.
38+
39+
### SeqDev: SeqN language improvements
40+
41+
For SeqDev users, this release includes a new release of the [aerie-sequence-languages](https://github.com/NASA-AMMOS/aerie-sequence-languages) library ([**v1.0.1**](https://github.com/NASA-AMMOS/aerie-sequence-languages/releases/tag/v1.0.1)), which will only work with SeqDev v4.1.0 (this release) and above. It includes some improvements to handling of control characters and special characters in SeqN strings, and automatic replacement of unsupported "curly quotes" (`“”`) in SeqN documents.
42+
43+
This is a non-breaking API change, but users with **custom sequencing adaptations** should update this library and rebuild/reupload their adaptation. If your sequencing adaptation overrides the list of SeqDev/SeqN extensions or other SeqN parsing code, you may need to make some code changes to take advantage of these improvements. See PRs [#20](https://github.com/NASA-AMMOS/aerie-sequence-languages/pull/20), [#21](https://github.com/NASA-AMMOS/aerie-sequence-languages/pull/21) & [#22](https://github.com/NASA-AMMOS/aerie-sequence-languages/pull/22) for details.
44+
45+
## SeqDev: Known SeqN inconsistency
46+
47+
An existing inconsistency in the SeqN language definition was discovered: escaped special characters like `"\n"` or `"\t"` in metadata **keys** are serialized into SeqJson differently than **values** - values are escaped while keys are "double-escaped". For example, `@METADATA "key\t" "val\t"` in SeqN becomes `"metadata": { "\\t": "\t" }` in SeqJSON. This was left unchanged due to unknown downstream effects, but we may consider changing it in a future release - contact us if you have concerns.
48+

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ const sidebars = {
518518
},
519519
],
520520
upgradeGuides: [
521+
'upgrade-guides/4-0-0-to-4-1-0',
521522
'upgrade-guides/3-8-1-to-4-0-0',
522523
'upgrade-guides/3-8-0-to-3-8-1',
523524
'upgrade-guides/3-7-1-to-3-8-0',

0 commit comments

Comments
 (0)