- Notifications
You must be signed in to change notification settings - Fork673
Fix for issue #717#727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -273,7 +273,7 @@ def extend_parser(parser): | ||
object_subparsers = object_group.add_subparsers( | ||
title='action', | ||
dest='whaction', help="Action to execute.") | ||
_populate_sub_parser_by_class(cls, object_subparsers) | ||
object_subparsers.required = True | ||
@@ -357,7 +357,7 @@ def display_dict(d, padding): | ||
id = getattr(obj, obj._id_attr) | ||
print('%s: %s' % (obj._id_attr.replace('_', '-'), id)) | ||
if hasattr(obj, '_short_print_attr'): | ||
value = getattr(obj, obj._short_print_attr) or 'None' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. shouldn't
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Actually, I don't know what these bad events are. It seems to me better to display them then to hide them. Because I consider github as a tool that helps me to show precisely what's going on in GitLab. If it hides the bad results, it may hide an important clue to a problem I'm solving. But I don't know how other parts of github behave. It's up to you to decide what you want it to do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The problem I see with this issue is that there is no way to have a usable output without displaying multiple attributes. For events that would be target_type and action_name for exemple What we could do (to be discussed):
Other idea: | ||
value = value.replace('\r', '').replace('\n', ' ') | ||
# If the attribute is a note (ProjectCommitComment) then we do | ||
# some modifications to fit everything on one line | ||