-
Notifications
You must be signed in to change notification settings - Fork 276
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
Convert Post Processing Config to VueRouter #4946
Conversation
5033344
to
9152e2c
Compare
Still need to test this a bit more to make sure I didn't break anything, but it looks good so far. |
Stub all the components used
`Config patch ignored {u'postProcessing': {u'showDownloadDir': None}}`
8220eb8
to
cefe4bf
Compare
Database:␊ | ||
<span>44.11</span></td></tr><tr><td><i class="icon16-config-python"></i> Python Version:</td><td></td></tr><tr><td><i class="icon16-config-ssl"></i> SSL Version:</td><td></td></tr><tr><td><i class="icon16-config-os"></i> OS:</td><td></td></tr><tr><td><i class="icon16-config-locale"></i> Locale:</td><td></td></tr><tr><td> </td><td> </td></tr><tr class="infoTableSeperator"><td> </td><td> </td></tr><tr><td><i class="icon16-config-user"></i> User:</td><td></td></tr><tr><td><i class="icon16-config-dir"></i> Program Folder:</td><td></td></tr><tr><td><i class="icon16-config-config"></i> Config File:</td><td></td></tr><tr><td><i class="icon16-config-db"></i> Database File:</td><td></td></tr><tr><td><i class="icon16-config-cache"></i> Cache Folder:</td><td></td></tr><tr><td><i class="icon16-config-log"></i> Log Folder:</td><td></td></tr><tr><td><i class="icon16-config-arguments"></i> Arguments:</td><td><pre>[␊ | ||
"--nolaunch",␊ | ||
"--datadir=C:\\\\Medusa\\\\Data"␊ |
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.
Unsure if it's related to this PR but what's up with the 4 backslashes?
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.
I copied the values from the Vuex tab on devtools, it doubles everything. I'll fix that.
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.
Actually, looks like the original value is correct.
It might be the prettyPrintJSON
method...
Database:␊ | ||
<span>44.11</span></td></tr><tr><td><i class="icon16-config-python"></i> Python Version:</td><td>2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]</td></tr><tr><td><i class="icon16-config-ssl"></i> SSL Version:</td><td></td></tr><tr><td><i class="icon16-config-os"></i> OS:</td><td></td></tr><tr><td><i class="icon16-config-locale"></i> Locale:</td><td></td></tr><tr><td> </td><td> </td></tr><tr class="infoTableSeperator"><td> </td><td> </td></tr><tr><td><i class="icon16-config-user"></i> User:</td><td></td></tr><tr><td><i class="icon16-config-dir"></i> Program Folder:</td><td></td></tr><tr><td><i class="icon16-config-config"></i> Config File:</td><td></td></tr><tr><td><i class="icon16-config-db"></i> Database File:</td><td></td></tr><tr><td><i class="icon16-config-cache"></i> Cache Folder:</td><td></td></tr><tr><td><i class="icon16-config-log"></i> Log Folder:</td><td></td></tr><tr><td><i class="icon16-config-arguments"></i> Arguments:</td><td><pre>[␊ | ||
"--nolaunch",␊ | ||
"--datadir=C:\\\\Medusa\\\\Data"␊ |
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.
@sharkykh didn't you fix this?
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.
I did not. The "problem" here is the response from the API is correct (C:\Medusa\Data
), then when applying JSON.stringify
on it, it escapes the backslashes and each \
becomes \\
and that is what is printed. The snapshot simply escapes it again, and that's why it's 4 backslashes for each original backslash.
I believe the original Python version of this page used json.dumps
which would produce the same result, so I figured it's correct. 🤔
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.
No worries, just wanted to make sure in the case you had fixed it that it hadn't snuck back in.
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.
LGTM
config.vue
render test/config/postProcessing
to SFCconfig-post-processing.vue
The page is throwing warnings in the tests due to a bug invue
/vue-test-utils
.Fixed upstream: "Cannot read property '_transitionClasses' of undefined" when injecting vee-validate which is not used vuejs/vue-test-utils#829
I stubbed the components for now...