1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-01 23:41:24 +00:00
Commit Graph

25 Commits

Author SHA1 Message Date
Darren Shepherd
5e344d90cd Don't strip strings on output 2018-08-13 10:00:02 -07:00
Darren Shepherd
dde4ff79de Fix merging of fields that are maps of other types 2018-07-31 14:10:23 -07:00
Darren Shepherd
c29825b3db Rename IsEmpty to IsAPIObjectEmpty 2018-07-19 10:23:17 -07:00
Darren Shepherd
843a604715 Fix replace logic 2018-07-19 10:23:17 -07:00
Darren Shepherd
7b6bca9b64 Add util methods to convert to idiomatic json/yaml key formats 2018-07-19 10:23:17 -07:00
Darren Shepherd
875bcf4b2d Change ToInternal to return error 2018-07-19 10:23:17 -07:00
Craig Jellick
719d3af64f Fix logic for setting annotation based fields
- Do not drop a field-to-annotation conversion if the value of the field is
nil. The user is excplicitly trying to set it to nil
- Never delete field annotations, even if they are not in the new map of
annotations sent by the user.
- Prevent the modification of the creatorId field, which is a special case
field that should be considered protected
2018-04-27 09:25:25 -07:00
Darren Shepherd
063fbdfa71 Don't consider nil values when merging 2018-04-24 01:18:55 -07:00
Darren Shepherd
ff84949977 Allow changing annotation and label fields 2018-04-23 11:52:35 -07:00
Darren Shepherd
db37c4223d Fix deleting keys in maps 2018-04-23 08:43:36 -07:00
Alena Prokharchyk
ef95950ff9 Transfrom fix 2018-02-27 10:16:20 -07:00
Darren Shepherd
e39bcf5ee4 If map, don't encode 2018-02-14 16:40:03 -07:00
Darren Shepherd
bfea703723 Transform helper method 2018-02-14 10:59:23 -07:00
Darren Shepherd
83916ae78f Add helper functions in norman 2018-02-07 13:48:02 -08:00
Darren Shepherd
c970c36427 fix json float parsing 2018-01-20 04:31:39 +00:00
Darren Shepherd
76d8256085 Change merge logic 2018-01-18 23:41:45 +00:00
Darren Shepherd
b33c29d49e Fix subscription dropping after 30 seconds 2018-01-18 23:41:45 +00:00
Darren Shepherd
9e6ea56442 Changes to make conditions less chatty 2018-01-17 22:44:12 +00:00
Darren Shepherd
6f8ed342d9 Cleanup channels 2018-01-17 04:49:08 +00:00
Darren Shepherd
fc7243e5c9 Add map and slice support to IsEmpty 2018-01-12 14:39:58 +00:00
Darren Shepherd
c94e18869a Handle time.Time to string conversion 2018-01-02 05:10:22 +00:00
Darren Shepherd
45662fe756 Add utils methods 2017-12-28 16:49:51 +00:00
Darren Shepherd
2550f12a9a Add offspring controller 2017-12-19 21:44:02 -07:00
Darren Shepherd
38c9c5c6c3 Subcontext and mapping updates 2017-11-21 15:37:22 -07:00
Darren Shepherd
c8cab3f4f8 More initial dev 2017-11-10 21:46:30 -07:00