Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Comments

Switch luis sdk to node-fetch#829

Merged
munozemilio merged 5 commits intomasterfrom
emimunoz/luis-cli-export
Jul 2, 2020
Merged

Switch luis sdk to node-fetch#829
munozemilio merged 5 commits intomasterfrom
emimunoz/luis-cli-export

Conversation

@munozemilio
Copy link
Contributor

Fixes #818
This will export the json in the expected format

@munozemilio munozemilio requested a review from vishwacsena May 28, 2020 06:45
@feich-ms
Copy link
Contributor

@munozemilio please help to cherry-pick the changes in luis build to your PR since luis build is also using export api. I think it also needs the fix. Here is the commit 8457feb

@munozemilio munozemilio requested a review from mdrichardson July 2, 2020 17:12
@codecov-commenter
Copy link

Codecov Report

Merging #829 into master will decrease coverage by 0.06%.
The diff coverage is 36.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #829      +/-   ##
==========================================
- Coverage   57.16%   57.10%   -0.07%     
==========================================
  Files         214      213       -1     
  Lines       14912    14748     -164     
  Branches     2076     2046      -30     
==========================================
- Hits         8525     8422     -103     
+ Misses       5826     5789      -37     
+ Partials      561      537      -24     
Impacted Files Coverage Δ
packages/lu/src/parser/lubuild/core.ts 16.29% <0.00%> (-0.37%) ⬇️
packages/luis/src/commands/luis/version/export.ts 100.00% <100.00%> (+8.69%) ⬆️
packages/command/src/clierror.ts 50.00% <0.00%> (-16.67%) ⬇️
packages/lg/src/commands/lg/index.ts 66.66% <0.00%> (-16.67%) ⬇️
packages/luis/src/commands/luis/index.ts 66.66% <0.00%> (-16.67%) ⬇️
packages/luis/src/commands/luis/train/run.ts 54.54% <0.00%> (-2.60%) ⬇️
packages/command/src/utils.ts 20.00% <0.00%> (-2.45%) ⬇️
packages/cli/src/hooks/init/inithook.ts 62.26% <0.00%> (-0.78%) ⬇️
packages/command/src/readpipeddata.ts 65.00% <0.00%> (-0.22%) ⬇️
packages/config/src/commands/config/set.ts 100.00% <0.00%> (ø)
... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3323a48...20e7d14. Read the comment docs.

try {
const appJSON = await client.versions.exportMethod(appId, versionId)
if (!appJSON) throw new CLIError('Failed to export file')
let url = endpoint + '/luis/authoring/v3.0-preview/apps/' + appId + '/versions/' + versionId + '/export?format=json'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make these URLs a constant? Might make future changes easier, especially once the preview part is removed

@munozemilio munozemilio merged commit 213c424 into master Jul 2, 2020
@munozemilio munozemilio deleted the emimunoz/luis-cli-export branch July 2, 2020 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bf luis:convert from json to lu prebuilt intent inheritance invalid

5 participants