Skip to content
Snippets Groups Projects

Ban `attributes_for` for migration specs

Merged Lin Jen-Shin requested to merge 299410-ban-attributes_for-in-migration into master
All threads resolved!

What does this MR do?

Ban attributes_for for migration specs. Rewriting issue: #299420

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #299410 (closed)

Edited by Lin Jen-Shin

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Lin Jen-Shin
  • Lin Jen-Shin added 17 commits

    added 17 commits

    Compare with previous version

  • Lin Jen-Shin mentioned in issue #299420

    mentioned in issue #299420

  • Lin Jen-Shin changed the description

    changed the description

  • @jprovaznik Please review? Thanks!

  • assigned to @jprovaznik and unassigned @godfat-gitlab

  • Jan Provaznik resolved all threads

    resolved all threads

  • Jan Provaznik approved this merge request

    approved this merge request

  • Thanks @godfat-gitlab, LGTM :thumbsup:, MWPS set :rocket:

  • Jan Provaznik enabled an automatic merge when the pipeline for 4f3fdfe7 succeeds

    enabled an automatic merge when the pipeline for 4f3fdfe7 succeeds

  • merged

  • Jan Provaznik mentioned in commit fd8ae0f6

    mentioned in commit fd8ae0f6

  • Michał Zając mentioned in commit 5b8bc9c2

    mentioned in commit 5b8bc9c2

  • Michał Zając mentioned in commit 5f10ae68

    mentioned in commit 5f10ae68

  • Michał Zając mentioned in merge request !52233 (merged)

    mentioned in merge request !52233 (merged)

  • mentioned in issue #299410 (closed)

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • Michał Zając mentioned in commit c3680461

    mentioned in commit c3680461

  • Michał Zając mentioned in merge request !52492 (merged)

    mentioned in merge request !52492 (merged)

  • Michał Zając mentioned in commit 21d87c2c

    mentioned in commit 21d87c2c

  • Michał Zając mentioned in merge request !52496 (merged)

    mentioned in merge request !52496 (merged)

  • Michał Zając mentioned in commit 4a6f0c5f

    mentioned in commit 4a6f0c5f

  • Michał Zając mentioned in merge request !52497 (merged)

    mentioned in merge request !52497 (merged)

  • Michał Zając mentioned in commit c0288539

    mentioned in commit c0288539

  • Michał Zając mentioned in merge request !52498 (merged)

    mentioned in merge request !52498 (merged)

  • Michał Zając mentioned in commit 20fb8b08

    mentioned in commit 20fb8b08

  • Michał Zając mentioned in commit d5a5f82e

    mentioned in commit d5a5f82e

  • Michał Zając mentioned in commit 4f6882dc

    mentioned in commit 4f6882dc

  • Michał Zając mentioned in commit d2a2b6ea

    mentioned in commit d2a2b6ea

    • Resolved by Mark Chao

      @godfat-gitlab I want to ask why attributes_for is considered bad? I can understand that using factory to create records can be deceiving, but attributes_for just returns a hash for use. It avoids repeatedly making up dummy values.

  • Mark Chao resolved all threads

    resolved all threads

  • Michał Zając mentioned in commit fa76a8d8

    mentioned in commit fa76a8d8

  • Michał Zając mentioned in commit 794c8098

    mentioned in commit 794c8098

  • Michał Zając mentioned in commit ccecedde

    mentioned in commit ccecedde

  • Michał Zając mentioned in merge request !53372 (merged)

    mentioned in merge request !53372 (merged)

  • Michał Zając mentioned in commit 0778090e

    mentioned in commit 0778090e

  • Michał Zając mentioned in merge request !53374 (merged)

    mentioned in merge request !53374 (merged)

  • Michał Zając mentioned in commit 8c6ac801

    mentioned in commit 8c6ac801

  • Michał Zając mentioned in merge request !53375 (merged)

    mentioned in merge request !53375 (merged)

  • Michał Zając mentioned in commit 28e11e6d

    mentioned in commit 28e11e6d

  • Michał Zając mentioned in merge request !53381 (merged)

    mentioned in merge request !53381 (merged)

  • Michał Zając mentioned in commit 35f82ea5

    mentioned in commit 35f82ea5

  • Michał Zając mentioned in commit 36e32d9c

    mentioned in commit 36e32d9c

  • Michał Zając mentioned in commit 9dbf6fbe

    mentioned in commit 9dbf6fbe

  • Michał Zając mentioned in commit 438ec458

    mentioned in commit 438ec458

  • Michał Zając mentioned in merge request !53614 (merged)

    mentioned in merge request !53614 (merged)

  • Michał Zając mentioned in commit ea67a91f

    mentioned in commit ea67a91f

  • Michał Zając mentioned in commit 18d5d5fe

    mentioned in commit 18d5d5fe

  • Michał Zając mentioned in commit 61d1606d

    mentioned in commit 61d1606d

  • Please register or sign in to reply
    Loading