Unverified Commit 2832585a authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #19672 from jmchilton/fix_actions_recording

[24.2] Fix recording transform action name.
parents e42da374 3b4ffd5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ def dereference_to_model(sa_session, user, history, data_request_uri: DataReques
    hda.dataset.sources = [dataset_source]
    transform: List[TransformAction] = []
    if data_request_uri.space_to_tab:
        transform.append({"action": "space_to_tab"})
        transform.append({"action": "spaces_to_tabs"})
    elif data_request_uri.to_posix_lines:
        transform.append({"action": "to_posix_lines"})
    if len(transform) > 0:
+1 −1
Original line number Diff line number Diff line
@@ -54,4 +54,4 @@ def test_dereference_to_posix():
    hda = dereference_to_model(sa_session, user, history, uri_request)
    assert hda.name == "foobar.txt"
    assert hda.dataset.sources[0].source_uri == TEST_BASE64_URI
    assert hda.dataset.sources[0].transform[0]["action"] == "space_to_tab"
    assert hda.dataset.sources[0].transform[0]["action"] == "spaces_to_tabs"