Skip to content

field.Required now allows details. sweep for usage and proper messages #7118

Closed

Description

@deads2k

We use this method extensively in various validation methods.

@pweil- This could be a "getting to know our API" task.

Activity

  1. sgallagher commented on Mar 28, 2016

    @sgallagher
    Contributor

    @deads2k Would you mind providing slightly more detail on the requested task?

    I assume what we're talking about is reviewing the 242 (thanks, git-grep!) uses of field.Required and adding extra data about "why" a particular error is thrown, but it's not entirely clear from the bug description.

  2. deads2k commented on Mar 28, 2016

    @deads2k
    ContributorAuthor

    I assume what we're talking about is reviewing the 242 (thanks, git-grep!) uses of field.Required and adding extra data about "why" a particular error is thrown, but it's not entirely clear from the bug description.

    Yes, that's correct. I haven't looked through upstream usages to see what sort of descriptions they are adding, but on our side I'd like to see us indicate a reason if a field is required because of the value of a different field. Otherwise, knowing its a required error is sufficient.

  3. sgallagher commented on Mar 28, 2016

    @sgallagher
    Contributor

    @deads2k OK, so I should ignore the cases where we are just checking for simple presence?

  4. deads2k commented on Mar 28, 2016

    @deads2k
    ContributorAuthor

    @deads2k OK, so I should ignore the cases where we are just checking for simple presence?

    Right, there's no value in repeating ourselves.

  5. 4 remaining items

  6. added a commit that references this issue on Sep 21, 2016
  7. added a commit that references this issue on Sep 28, 2016
  8. removed their assignment
    on Oct 6, 2016
  9. bparees commented on Feb 2, 2018

    @bparees
    Contributor

    @deads2k @mfojtik I assume this really needs to be broken down into separate issues for each api resource that isn't doing this correctly today.

  10. openshift-bot commented on May 4, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  11. added
    lifecycle/stale
    on May 4, 2018
  12. openshift-bot commented on Jun 3, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  13. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Jun 3, 2018
  14. openshift-bot commented on Jul 3, 2018

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

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

Metadata

Metadata

Assignees

Labels

area/compatibilitycomponent/restapilifecycle/rottenpriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions