Skip to content

Fix Array<Hash> support for steps#74

Open
emrekutlu wants to merge 1 commit intotransloadit:mainfrom
emrekutlu:main
Open

Fix Array<Hash> support for steps#74
emrekutlu wants to merge 1 commit intotransloadit:mainfrom
emrekutlu:main

Conversation

@emrekutlu
Copy link
Copy Markdown

Hello,

#50 this pull request breaks the support for Array<Hash> support for steps which we came across while trying to upgrade from v2 -> v3.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb650d11b6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

when Transloadit::Step then steps.to_hash
else
if steps.uniq(&:name) != steps
if steps.uniq != steps
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore duplicate-name validation for array steps

steps.uniq != steps only detects fully equal elements, so it misses the duplicate-name case this guard is meant to catch (e.g., two hashes keyed by :thumbs with different robot options, or two Step objects with the same name). In those cases no ArgumentError is raised and steps.inject({}) { |h, s| h.update s } silently overwrites the earlier step, changing assembly instructions compared to previous behavior.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant