-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stick incident #2065
Stick incident #2065
Conversation
5adfd9e
to
8e48f60
Compare
* | ||
* @var bool | ||
*/ | ||
public $sticked; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe stickied
is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to use real words. "stuck"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dude, "stickied" is a real word http://www.collinsdictionary.com/dictionary/english/stickied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not according to the Oxford English dictionary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The savageness is real.
Though I agree with @GrahamCampbell, stuck
also reads better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a more explicite name like show(ed)_on_top or display(ed)_on_top or simply on_top ?
Should stickied really be a bool? It'd be cool if you can, say, stick until... No? I might be over-engineering this in my head. |
If you know exacly the date of end it maybe more a maintenance ? I was more thinking of being able to show a long running problem (or task) so don't know when it will be solved and that is far away in history. |
Yeah, I'm with @sapk, that's more maintenance. |
Yeah, I clearly didn't take that into account. Apologies. You're 100% correctamundo. |
Ok It start to be good. Just need some information now. |
I don't really know why the tests failed on PUT. I think it's maybe a init of the base incident before the update that don't have sticked member but i have not find anything on that. :-( |
Could you please make the tests pass and possibly make the definitions more consistent? IE: https://github.com/CachetHQ/Cachet/pull/2065/files#diff-18a3c8f98774995896a403aa092a5638R115, https://github.com/CachetHQ/Cachet/pull/2065/files#diff-42a1e178504e45c7b3c2eb1207ed13e7R253, https://github.com/CachetHQ/Cachet/pull/2065/files#diff-47adb6518a63b5179a1b8476682aa9ccR78, https://github.com/CachetHQ/Cachet/pull/2065/files#diff-4053f3352543b0ef0025ff2aa1c87ce0R67 Plus, I'm unsure if |
For the consistent of definition do you mean beacause sometimes it's bool and other it's int ? I use the notify argument as a example and was thiniking that it's store as a int in db but it is a logical bool. |
Utilise the data as it's expected, not as it's stored. If it's logically interpreted as a bool, manage it that way 😄 |
Sorry for the long commit history. I am using github web ui. I know it's bad ... i will squash them tonight |
Could you squash into one commit and rebase this please? I'll have a look then. |
20121b8
to
4090053
Compare
Should be ok. |
Needs rebasing again, sorry! |
Little merge conflict with lang change. Should be ok. |
🎉 Thanks @sapk! |
Implement #2023
work in branch : stick-incident