feat: Add config-manager push raw command#78
Conversation
8351261 to
4c01c61
Compare
a480ed2 to
1f98b35
Compare
1f98b35 to
0b4befb
Compare
0b4befb to
4a6f2c0
Compare
4a6f2c0 to
8f0c6de
Compare
| } else { | ||
| delete data._rev; | ||
| delete data._type; | ||
| await importRawConfig({ path: rawPath }, data); |
There was a problem hiding this comment.
Is rawPath the correct value for path? It seems importRawConfig expects path to be the URL path to the resource rather than the path to the config file.
There was a problem hiding this comment.
It looks like it's correct, this is the case when there is only one item at the path as opposed to many. However, the way this is written is pretty confusing. I left a comment suggesting some improvements to simplify this similar to how fr-config-manager does it.
| } else { | ||
| delete data._rev; | ||
| delete data._type; | ||
| await importRawConfig({ path: rawPath }, data); |
There was a problem hiding this comment.
It looks like it's correct, this is the case when there is only one item at the path as opposed to many. However, the way this is written is pretty confusing. I left a comment suggesting some improvements to simplify this similar to how fr-config-manager does it.
8f0c6de to
a17bdc2
Compare
No description provided.