Граф коммитов

82 Коммитов

Автор SHA1 Сообщение Дата
Eugene Olonov 0e0569131a Update nodejs version used on CI 2024-03-13 14:07:46 -07:00
tracyboehrer c5d7fe01ad
Merge branch 'main' into southworks/fix/alerts 2023-01-19 12:40:42 -06:00
Tracy Boehrer 06b96c56a3 Removed code owners 2023-01-19 12:34:28 -06:00
dependabot[bot] 7a03a49395 [CVE-2022-0235] Updated node-fetch from 2.6.1 to 2.6.7 2023-01-16 16:16:24 -03:00
BruceHaley 50c2e2b95b
chore: Update dependencies for Composer and extensions (#9298)
* Add dependency_updates.yml

* Use yarn up-all in Update dependencies

* Add up-all plugin

* Remove yarn upgrade from workflow

* yarn up-all 7-6 e

* lock file updates

* Add dir workspace

* drop myget Nuget source setup

* Update hashes in .lock files

* Reupdate lock files

* By-hand lock file hash fixes

* Revert eslint-config-prettier to 6.11.0

* Revert esline-plugin and parser to 2.34.0

* Revert eslint-plugin-prettier to 3.1.3

* Revert prettier to 2.0.5.

* Disable/warn eslint errors

* Add to excludes

* Clean up azure-pipelines.yml

* Update .yarnrc.prod.yml for yaarn 3.2.1

* Fixed newline in en-US.json locale file

Co-authored-by: Tony Anziano <toanzian@microsoft.com>
2022-07-14 13:14:58 -07:00
Geoff Cox (Microsoft) c26b8c27c4
Update CODEOWNERS (#8619)
Removing those no longer on the team
2021-09-01 15:39:43 -07:00
pavolum 5d4c1d4d8b
Adding Natalie and Vamsi as code owners to publish extensions and composer general (#8284) 2021-07-07 13:28:17 -07:00
Andy Brown 5cfac6ac6c
test: update tests, add github actions reporter (#7238)
* make jest tests silent

* fix path warning in tests

* don't hide build/ or node_modules/

* fix createUploadHandler test

* fix conversation handler test

* use github actions reporter for test results

* include test location in output

* move jest dep into test-utils and use correct reporter name

* ignore tests in dist

* fix up botProject open handle

* bump browserslist and update caniuse-lite

* use node env for node tests

supposedly this should help speed up tests that do not require jsdom

* perpare server for @swc-node/jest

* prepare client for @swc-node/jest

* switch to swc for transpiling ts in tests

* fix compiler errors

* removed unused var

* special case the fallback recognizer (#7634)

* chore: bump wait-on to v5.3.0 (#7648)

* fix: update left nav and top bar strings (#7609)

* start fixing header

* adjust header chrome and left nav order

* Update en-US.json

* fix typecheck errors

* fix unit tests

* Update en-US.json

* change Design to Create in e2e tests

* Update LuisDeploy.spec.ts

* update flaky check in visitPage

* add 'checked' flag to visitPage to minimize surface area

* fix punctuation

* fix e2e test!

* fix security issue

* Revert "fix security issue"

This reverts commit 3aa6e3e4e36a951bb37244e01dd411fa4eca10dd.

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* fix: rephrase Enable Orchestrator dialog (#7639)

* "Add a skill" page changes

* Update EnableOrchestrator.tsx

* Update skill.test.tsx

* Update package.json

* Update yarn.lock

* Update en-US.json

* fix: Update provision & publishing copy (#7583) (#7642)

* Issue-7583: update copy for provision and publishing

* en-us json files

* Issue-7583: fix formatDialogTitle

* Issue-7583: refactor formatDialogTitle

* Issue-7583: reformat azure provision dialog block

* PR fixes

* Fixed spacing

Co-authored-by: GeoffCoxMSFT <gcox@microsoft.com>

* fix: Added cleanup logic to app on quit (#7645)

* Added cleanup logic to app on quit

* Added missing electron ipc event listener

Co-authored-by: TJ Durnford <tjdford@gmail.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* feat: show tunneling information notification when starting bot with remote skills (#7611)

* add util to get device OS

* add port to local publish result

* add port to botEndpointsState

* show ngrok notification when starting a bot with remote skills

* only show the remote skills notification onces per session per bot

* update l10n file

* address feedback

* update locale file after merge

* fix failing test

Co-authored-by: Soroush <hatpick@gmail.com>

* feat: detect "old" bots and migrate them to new runtime (#6526)

* introduce a migration system for updating legacy projcts to the 2.0 runtime

* updated

* ensure root dialog gets updated appropriately

* adjust method for updating root dialog

* remove comments

* fire migration warning when loading bot

* use original project name for new project

* close modal on submit

* address feedback

* add confirm modal

* Rename azureFunctionsPublish publish targets to azurePublish (new shared id)

* Delete a.en-us.lu

* Delete a.en-us.qna

* Delete b.en-us.lu

* Delete b.en-us.qna

* Delete bot1.en-us.lu

* Delete bot1.en-us.qna

* do not require pva to migrate

* Add missing parameters

* clarify types

* Fix tests
reduce redundant code

* Fixes #6844: migrate appinsights key to new location

* fix migrate lint issue

* plumb through the yeomanOptions parameter, required to set the location of the settings folder when migrating

* feat: new validation pipeline - schema existence validation (#7001)

* add placeholder for schema validator

* add schema validator pipeline with mocked fn

* add schema visitor

* display diagnostics data in debug panel

* revert sdk.ts

* decrease schema diagnostic severity to 'Warning'

* optmize path join logic

* impl a unified walker covers SwitchCondition

* fix lint error: use BaseSchema

* feat: disable actions without schema

* wrap in useEffect

* optimization: avoid frequent recoil submission

* optimization: aggregate paths rather than updatedDialog to reduce time complexity

* chore: comments & var name

* lint

* add comments

* defense undefined skip-level 'actions'

* defense potential exceptions

* get sdk.schema content correctly

* fix lint

* fix folder name case problem

* Do not specify the luis endpoint key as a parameter to the runtime if no vlaue is present (#7240)

(leaving this paramter blank causes issues on windows)

* disable telemetry calls in the provision dialog while we investigate why telemetryclient is null (#7256)

Co-authored-by: Geoff Cox (Microsoft) <gcox@microsoft.com>

* prefer the botName field instead of the name field when managing connections (#7262)

* fix: Empty Webchat inspector text and Disabling items in PVA context (#7241)

* show floating notifications over eveything (#7269)

Co-authored-by: Soroush <sorgh@microsoft.com>

* Region for Microsoft Bot Channels Registration is now global (#7270)

Co-authored-by: Ben Brown <benbro@microsoft.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* fix: adjust package manager feeds (#7243)

* Fix #7092: set default page size to 100 items

* Fixes #6854: merge community feeds into main feed, sort by downloads

* Fixes #7043: include any component tagged msbot-component

* improve error handling

* restore different checks for declarative only vs code driven components

* refactor to use includes instead of indexOf

Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>

* fix: remodel About page (#7191)

* remodel About page

* add SHA to version

* fixes from suggestion

* get info from Electron and use it for Release field

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Ben Brown <benbro@microsoft.com>
Co-authored-by: Geoff Cox (Microsoft) <gcox@microsoft.com>
Co-authored-by: Srinaath Ravichandran <srinaath27@gmail.com>
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Vamsi Modem <12182973+VamsiModem@users.noreply.github.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>

* fix mapping of schema files during migration

* fix lint

* fix default name of migrated project

* run schema merge as part of the migration

* do we need to migrate teh schema? or not?

* do not migrate schema

* - Adding field for runtime language
- Fixing field population for runtime type

* Passing runtime lang and type down to yeoman calls

* Fixing adaptive runtime name

* Hardcoding runtime version and fixing settings page generation on migrate

* Fixing check for 'inBotMigration' to be based on CreationStatusState > path substring

* Fix default naming

* revert preload.js

* Resolving PR comments and fixing errors from merge

* Change schema diagnostics severity to 'Error'

* Fetch @latest version from npm before migration

Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: leilzh <leilzh@microsoft.com>
Co-authored-by: zhixzhan <zhixzhan@microsoft.com>
Co-authored-by: zeye <zeye@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Geoff Cox (Microsoft) <gcox@microsoft.com>
Co-authored-by: Srinaath Ravichandran <srinaath27@gmail.com>
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Vamsi Modem <12182973+VamsiModem@users.noreply.github.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Patrick Volum <pavolum@outlook.com>
Co-authored-by: Chris Whitten <christopherwhitten@gmail.com>

* fix: data race writing on setting file (#7475)

* fix data race writing on setting file

* remove isSkill in skillConfiguration

* remove default allowedCallers value

Co-authored-by: TJ Durnford <tjdford@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* remove appsettings file from default gitignore (#7679)

* fix: restore line beneath page header (#7676)

* Update Page.tsx

* Update BotProjectSettings.tsx

* chore: Rebase main with 1.4.1 release (#7678)

* exclude items from the package manager list that do not have names or versions -- such as locally implemented custom actions (#7683)

* Add components field to migrated settings. Guard against missing field during component merge (#7674)

Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* fix: (Un) Installing a package now stops the currently running bot beforehand (#7689)

* Feed string, not int, to Switch per schema (#7707)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* fix: generate manifest file when creating new publish target (#7666)

* generate manifest file when creating new profile

* test

Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
Co-authored-by: TJ Durnford <tjdford@gmail.com>

* fix: converting bot with custom actions (ui update) (#7672)

* Hides the PVA publish profile from the profle creation dropdown (#7725)

* fix: set func-related settings during build step (#7723)

* set func-related settings during build step

* slight refactor to reduce duplicated code

* add type

* add typings in runtime plugin definition

* set type of port to number

* fix types, remove _ on variables that are used

* feat: Add preparatory work before connecting remote skill (#7519)

* draft dialog

* ux css

* css

* jump to create profile & set microsoftAppId to publish target

* comments & lint

* refactor dialog wrapper

* fix publish types missing in provision dialog (#7697)

* test case

* refactor

* fix type define

* fix title and json parse

* fix app Id not sync when create new profile

* Adds AppID and Password sections

* test case fixed

* Adds AppID/Password

* Update copy

Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: VanyLaw <wenyluo@microsoft.com>
Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopherwhitten@gmail.com>

* fix: Revert changes to adaptive card templates to support PVA (#7808)

* fix: Revert changes to adaptive card templates to support PVA

* requested changes

* fetch publish types for each project

* fix: Throttle restart conversation (#7824)

* Throttle restart

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Remove await

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Updated throttle time

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Unit test update

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Enable only on connected

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* removed if

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>

* chore: automated localization updates (#7759)

* Localized resource files from OneLocBuild

* fix typos and stray apostrophes

* fix apostrophes

* typo fix

* Update en-US.json

* fix more apostrophes

* revert reversions

Co-authored-by: Composer Localization <botframework-composer-eng@service.microsoft.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* Deploy exception returns real error (#7837)

* fix: Fix missing data collection settings on server (#7814)

* fix: Fix missing data collection settings on server

* fix tests

* fix test again

* minor change

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* fix: add inner scrollbar to selection area (#7782)

* scroll

* css

* test

Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* Migration: adjust target blob transcript field names (#7848)

* fix: Always use intermediate lg template for text and speak modalities (#7842)

* allow click outside blocking modals (#7727)

Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: TJ Durnford <tjdford@gmail.com>

* fix: Remove depth and transparentBorders from FieldProps, remove ObjectArrayField, and refactor OpenObjectField (#6633)

* Remove depth and transparentBorder

* Update OneOfField dropdown styles

* Remove ObjectArrayField

* fix tests

* Refactor OpenObjectField

* updated test

* minor

* fix test

* minor

Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>

* fix: Teaching bubble missing content (#7764)

* fix: Teaching bubble missing content

* Fix item ref

Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* fix: Reset allowed callers cache when switching between project settings (#7874)

* fix: Reset allowed callers cache when switching between project settings

* comment

Co-authored-by: Soroush <hatpick@gmail.com>

* fix: breadcrumb & show code button collision (#7720)

* fix breadcrumb & show code button collision

* use flex

* update styles

* observe button width, auto layout ... breadcrumb

* ignore typescript ResizeObserver declarations missing

* fix type in test

* useResizeObserver

* fix mock

Co-authored-by: Srinaath Ravichandran <srinaath27@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* Update home feed for Build 2021 (#7912)

* fix (#7440)

Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: TJ Durnford <tjdford@gmail.com>

* fix: Custom function declaration (#7775)

* Custom function declaration

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Typo in custom functions

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>

* add new caller when caller still have empty list, just focus on the empty one (#7767)

Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>

* Resolve dns-packet to 1.3.4 to fix CVE-2021-23386 (#7942)

Co-authored-by: Soroush <hatpick@fmail.com>

* fix: invalid profile case (#7784)

* invalid profile case

* comments

* remove unused component

* refactor publish profile wrapper dialog

* toekn page jump logic err

Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
Co-authored-by: Soroush <hatpick@gmail.com>

* fix: Need to wait for zip deployment to be done processing (#7858)

* Handled 202

* Added error case for processing

* Improvements

Co-authored-by: Soroush <hatpick@gmail.com>

* Update readme screenshot (#7918)

Co-authored-by: Soroush <sorgh@microsoft.com>

* upgrade json-ptr (#7988)

* update test-utils dependencies

* remove console overrides

* fix tests for jest 27

* use fake timers for jest

* fix more tests for jest 27

* fix merge conflict

* clean up

* replace HookResult with RenderResult

* fix orchestrator test

* fix test warning

* fix jest-haste-map warning

* fix testid error

* attempt to resolve NetworkError in tests that use jsdom

* rename test file

* globally mock http client

* fix unhandled rejection error

* clear mocks after each test

* fix type errors

* rename test file

* move integration tests into own workspace

this is required due to a dependency resolution conflict within @testing-library/dom. See https://github.com/testing-library/dom-testing-library/issues/963

* remove unused dependency

* fix integration tests linting errors

* use correct directory for running e2e script

* re-enable parallel cypress tests

* pass --record option to cypress runner

* actually set up cypress to run in parallel

* add @testing-library/user-event to test-utils exports

* fix fixture path

* use fs-extra to ensure test bot directory

* update cypress comands

* remove pr trigger from pipeline

2 runs were happening. Trying to see if this fixes that.

* re-enable cleanup after all tests

* update lockfile

* fix mocks and disabled button checks

* add axios mock

* remove cypress examples

* add hasOrchestrator to useEffect dependencies

* add description to integration-tests package.json

* fix e2e script for windows

* remove console.log

Co-authored-by: taicchoumsft <61705609+taicchoumsft@users.noreply.github.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: natalgar <82851479+natalgar@users.noreply.github.com>
Co-authored-by: GeoffCoxMSFT <gcox@microsoft.com>
Co-authored-by: Tony Anziano <tonyanziano5@gmail.com>
Co-authored-by: TJ Durnford <tjdford@gmail.com>
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Ben Brown <benbro@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: leilzh <leilzh@microsoft.com>
Co-authored-by: zhixzhan <zhixzhan@microsoft.com>
Co-authored-by: zeye <zeye@microsoft.com>
Co-authored-by: Srinaath Ravichandran <srinaath27@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Vamsi Modem <12182973+VamsiModem@users.noreply.github.com>
Co-authored-by: Patrick Volum <pavolum@outlook.com>
Co-authored-by: Chris Whitten <christopherwhitten@gmail.com>
Co-authored-by: Long Alan <alanlong9278@126.com>
Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
Co-authored-by: Long Alan <julong@microsoft.com>
Co-authored-by: VanyLaw <wenyluo@microsoft.com>
Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>
Co-authored-by: Composer Localization <botframework-composer-eng@service.microsoft.com>
Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
Co-authored-by: Gary Pretty <gary@garypretty.co.uk>
Co-authored-by: Soroush <hatpick@fmail.com>
2021-06-18 16:00:48 -07:00
Ben Brown 971e45e37e
chore: deprecate old runtime code, support for ejection (#7870)
* deprecate old runtime

* remove samples, deprecate ejection features

* fix comment style

* remove tests focused on the bot runtimes
2021-06-18 15:25:26 -07:00
Andy Brown b59674780f
ci: fix yml syntax error (#8087) 2021-06-15 10:16:11 -07:00
Geoff Cox (Microsoft) c663350e36
ci: Add back yarn caching (#8086) 2021-06-15 10:11:42 -07:00
Vamsi Modem e9533b5d27 fix: refactor azure provisioning extension (#7993)
* initial commit for new provisioning extension

* Renamed extension, added auto complete component

* Deleted all the old files

* Modified Wizard to use render props approach, added signout support and footer with user persona

* Removed styled component deps

* Cleaned up props and added new components

* Moved constants to a new file

* Made changes per PR comments

* cleaned up Handoff wizard code

* Removed unncessary formatting

* Changes as per PR comments

* Added recoil dispatchers

* Removed unnecessary code

* Added useDispatcher hook

* Removed unwanted deps

* Removed barrel files

* Moved urls to the top in each file

* Added Text tag for all the instructions

* Changed parameter name

* Added Code owners for azurePublishNew
2021-06-11 12:51:12 -07:00
Ben Yackley 8eaba3a750 ci: increase unit test timeout to 45 minutes (#7836)
Co-authored-by: Soroush <hatpick@gmail.com>
2021-06-03 09:37:00 -07:00
Andy Brown a492710021 ci: use github-actions eslint formatter (#7015)
dont prefix output for CI

update github-actions formatter
2021-04-16 13:22:42 -07:00
pavolum f47f2e068f chore: Adding Ben Brown, Patrick Volum, and TJ Durnford as github codeowners (#6977)
* Adding Ben Brown and Patrick Volum as github codeowners

* Add tdurnford as codeowner

Co-authored-by: TJ <tj.durnford@microsoft.com>
Co-authored-by: TJ Durnford <tjdford@gmail.com>
2021-04-14 17:40:20 -07:00
Geoff Cox (Microsoft) cef4d2468d chore: Updating ownership (#6629)
* Updating ownership

* adding tony

Co-authored-by: Soroush <hatpick@gmail.com>
2021-03-31 15:16:51 -07:00
leileizhang 90a49bc141 fix: docker build failed (#6551)
* fix:docker build failed

* update the ci file

* add some comments
2021-03-25 06:10:38 -07:00
Andy Brown d5842582a5 chore: update label for new feature request issues (#6339) 2021-03-09 10:02:54 -08:00
Andy Brown 4df65d4c66 chore: prettify and lint extensions (#6090)
* update pre-commit glob to format files outside /Composer

* apply linting fixes to extension files

* lint extensions as part of CI

* fix new lint errors
2021-03-03 13:23:27 -08:00
Srinaath Ravichandran dec1437a74 chore: Upgrade pipelines to Node LTS (#5815) 2021-02-17 16:10:03 -08:00
Andy Brown 7d365ddf87 revert: feature issue template (#5796)
* revert feature request issue template

In order to comply with certain reporting requirements, we should use issues until further notice.

* add note about searching for existing issue
2021-02-16 10:40:36 -08:00
leileizhang b9e5a94edd fix: docker build failed (#5714) 2021-02-07 07:00:01 -08:00
Andy Brown 22c717e86d chore: deprecate feature request issue template (#5378)
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
2021-01-19 11:13:24 -08:00
Andy Brown c537522f0b ci: re-trigger pr validation on push (#5512) 2021-01-13 13:32:58 -08:00
Andy Brown c2755d1167 ci: validate pr when opened and edited (#5505) 2021-01-12 17:33:02 -08:00
Andy Brown 38e415bac0 ci: automatically assign PR owner after review 2020-12-07 15:17:04 -08:00
Andy Brown 73860178fe increase unit tests timeout to 30 min (#4764) 2020-11-11 11:06:02 -08:00
Andy Brown 94a15899ca ci: remove code scanning workflow (#4569) 2020-10-28 13:20:28 -07:00
Dong Lei dcd3dbe97e ci: disable docker cache and remove buildx (#4523)
* Disable docker cache for now

* remove buildx from docker workflow

Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-10-26 09:36:01 -07:00
Christiano Donke e95e278812 feat: Change docker base image to Ubuntu-20.04 (#4516)
* Ignoring .git folder for docker build

* changing base image to ubuntu

* adding verbose to health check on github actions

* fix varaible name

Co-authored-by: Dong Lei <donglei@microsoft.com>
2020-10-26 04:19:18 +00:00
Andy Brown d2fabd8d57 fix: fix docker build (#4461)
* always compile extensions if git not present

* compile extension if main module is missing

* do not print git errors

* fix docker builds

* re-enable docker on CI

* load image into docker after building

* report on errors and fail script

* remove buildx

* force extensions to install all dependencies

when NODE_ENV is production, yarn will not install dev dependencies. We need those to build extensions.

* revert not using buildx

* start up docker in background

* update code scan action to run on push to main
2020-10-21 17:02:59 -07:00
Geoff Cox (Microsoft) 279ea4b623 chore: clear CI yarn cache (#4365)
* Fix #4294 - Disable the default timeout for requests on the LU build step which can take > 2 minutes for large models

* Update main.yml

Temporarily clearing the yarn cache trying to fix a CI build failure problem.

* Update project.ts

No idea why editing the workflow from GitHub caused this change, removing it.

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Trying if cache is good and clean

* restoring the update of checksums

* removing temp yarn cache clear

* Update main.yml

Restoring yarn cache clean

Co-authored-by: Ben Brown <benbro@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
2020-10-15 08:38:05 -07:00
leileizhang 3562f44192 chore: remove the ci yarn cache [TEST] (#4369)
* chore: clear CI yarn cache and update checksum

* update the cache

* don't use cache

* update test

* update the test
2020-10-14 07:34:16 -07:00
dependabot[bot] aa57466103 chore(deps): Bump @actions/core in /.github/actions/conventional-pr (#4307)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.0 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-10-01 13:31:43 -07:00
dependabot[bot] 8cec2a5adb chore(deps): Bump node-fetch in /.github/actions/conventional-pr (#4088)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-09-14 08:05:01 -07:00
Andy Brown 93248fe579 refactor: rename plugins to extensions (#4075)
* rename plugins to extensions where it makes sense

* move packages out of extensions directory

* rename extension to editor-extension

* merge editor-extension and extension-client

* fix type name

* fix up remaining references to extensions directory

* rename plugin-loader to extension

* Aligned electron remote plugin dir with server remote plugin dir.

* Fixed tests.

* Typecheck fix

Co-authored-by: Tony Anziano <tonyanziano5@gmail.com>
2020-09-10 17:55:23 -07:00
Geoff Cox (Microsoft) 9f19a7a832 chore: Updated owners for PRs (#4083)
* Updated owners for PRs

* Update CODEOWNERS

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
2020-09-10 14:07:55 -07:00
VanyLaw d87825b991 feat: enable js runtime (preview) (#3198)
* add js runtime

* set copy button disable when copying

* updated js runtime to load settings correctly

* updated js runtime to load settings correctly

* add js runtime publish

* add runtime config

* fixed sample templates

* read folder path from settings

* change publish folder for js runtime

* exlucde *.zip from archived files

* fixed appsettings path for deployment

* added web.config as well as iisnode.yml configuration files for deployment

* compiled js runtime

* merge settings

* enum value to lower case

* fixed zip deployment issue

* deploy js runtime without eject

* js runtime lib files

* fix restart

* fix lint

* fix zip runtime

* fix bot-deploy package can not update in azurepublish plugin

* fix copy runtime everytime when local publish

* updated configuration files for deployment

* add yarn install in first time clicking start

* bump runtime dependencies' version

* fix deploy absolute url and include .deployment into zip

* decouple platform in localpublish plugin

* move some code into nodejs runtime core

* merge master

* fix profile edit and save not saving to settings

* Remove language specific features from core and into runtime plugin (#3453)

* Remove language specific features from core and into runtime plugin

* cleanup a bit of the azurepublish plugin for readability

* move some code, add some comments

* refactor bot project deploy and split into several sub-classes. move this from inside composer into the plugin

* remove bot-deploy package
combine azurePublish and azureFunctionsPublish
refine buildDeploy api method to allow for knowledge of what target is being built for

* remove azureFunctionsPublish (replaced by azureFunctions)

* fix to node runtime

* allow start bot button to be async

* clean up dependencies, paths

* remove rimraf yarn.lock in package.json and catch error during setBot

* merge settings and write once inside the runtime plugin

* make sure to use exec instead of execSync

* make sure everything happens in the right order
don't use console.log

* identify runtime by name field

* update luis package in azurePublish plugin and fix getRuntimeByProject

* remove lib folder in azurePublish

* test: increase 'adaptive-flow' test coverage to 77% (#3530)

* + UT: adaptive-flow-renderer/widgets

* + UT: adaptive-flow-editor/utils

* remove unref hook: useWindowDimension

* + UT: KeyboardZone

* + UT: cursorTracker

* + UT: adaptive-flow-editor/constants

* +UT: AdaptiveFlowEditor

* + UT: adaptive-flow-editor/contexts

* + UT: useEditorEventApi

* fix CI error

* + UT: NodeWrapper

* + UT: EdgeMenu

* KeyboardZone behavioror test

* change the test file structure of cursorTracker

* update a test case (#3531)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* fix lgWorker test failure (#3529)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>

* chore: adds webpack bundle analyzer (#3542)

* issues#3309

* fixes lints

* Default to bot settings if no route cache

* fix: #3485

* fix: #3486 Debug/Fix HMR support

* webpack bundle analyzer

Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>

* refactor: split some actions off setSettings (#3525)

* split some actions off setSettings

* add more actions - eject still not working

* fix arguments in eject

* split some actions off setSettings

* add more actions - eject still not working

* fix arguments in eject

* Update setting.ts

* fix some tests

* Update index.ts

* move logo-clicking to commands.ts

* Update commands.ts

* fix: Dialog validate throw error when delete an action (#3537)

* fix: Dialog validate throw error when delete an action

* use optional chaining and more explicit length check

* fix lint

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>

* use const instead of raw http status values

* rename js runtime to node-azurewebapp

Co-authored-by: Wenyi Luo <wenyluo@microsoft.com>
Co-authored-by: zeye <2295905420@qq.com>
Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Zhixiang Zhan <zhixzhan@microsoft.com>
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>

* fix js runtime in core

* fix js runtime local publish

* fix exclude paths not working in copyDir

* delete bot-deploy in lib

* merge nodejs runtime packages into one and fix deploy path error

* fix yarn to install lu 4.10.0

* fix merge conflict

* enable switch runtime in managed mode

* add npmrc to set registry in azure, make sure daily build version package can be install

* fix several comments

* fix comments

* fix luisbot deploy endpointKey issue and send 202 response before runtime template copy

* fix luisbot deploy endpointKey issue and send 202 response before runtime template copy

* fix ut in eject

* move DialogSetting interface into shared folder

* fix build error

* fix e2e test fail

* add test for js runtime

* dotnet runtime luis settings refactor, remove duplicate settings file (#3677)

* remove appsettings.deployment.json and appsettings.development.json

* fix get publish status after merge main

* some updates to the plugins README to include new functionality

* additional docs for the plugin APIs

* upgrade dependency

* support skills

* optimized structure of js runtime

* to get correct project root

* added manifest support in js runtime

* ignored lib folder in js runtime

* updated docs of js runtime

* fix some comments

* removed skills validation

* remove appsettings.json in dotnet

* fixed case issue of microsoft app id

* increased param length limit of web server

* shared skill conversation id factory

* remove listener before stop bot, move manifest saving into runtime plugin

* fix unit test

* modify node runtime actions test, add node runtime test into CI

* modify all node runtime tests

* add working directory in ci yml

* add preview in js eject and update restify package version

* add ts into dev dep

* build after eject

* added test cases for skill conversation id factory

* fix npm build involve jest in production environment

* polish

* fix some comments

* add eslint and fix lint

* updated set output target of typescript to es6

* use lodash merge instead object assign

* change method parameter to object, move botStatusInterval from recoil to component

* remove templatePath in publish api call and get it in plugins by runtime type in project

* azure functions in js runtime

* polish exec in runtime plugin, use lodash mergeWith to replace original mergeDeep

* polish runtime plugin

* make console log in azure publish plugin to logger

* fix mkdir error in runtime plugin; popup confirm dialog instead error when customized runtime existed

* stop bot before switch eject runtime

* ignore warning and error in npm install, modify schema folder into Schema folder in eject, in case linux eject

* add doc for js runtime

* polish

* polish

* modify readme

* merge multi parameter into object

Co-authored-by: Zichuan Ma <zim@microsoft.com>
Co-authored-by: Qi Kang <qika@microsoft.com>
Co-authored-by: Ben Brown <benbro@microsoft.com>
Co-authored-by: zeye <2295905420@qq.com>
Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Zhixiang Zhan <zhixzhan@microsoft.com>
Co-authored-by: Soroush <hatpick@gmail.com>
Co-authored-by: Soroush <sorgh@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Qi Kang <kangqidev@gmail.com>
Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
2020-08-19 16:28:27 -07:00
Ben Yackley bb0250a8d6 allow dependabot PRs to skip checks (#3649) 2020-07-17 08:44:01 -07:00
Geoff Cox (Microsoft) 63310b8809 chore: Rename to new main branch name (#3619)
* Rename to new main branch name

* Updated to aka.ms links

* Update Composer/packages/electron-server/src/appMenu.ts

Co-authored-by: Andy Brown <asbrown002@gmail.com>

* Fix some wrong changes

Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-07-10 14:57:23 -07:00
Justin Hutchings 4844975eae security: add CodeQL security scanning (#3332)
Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-06-09 10:14:55 -07:00
Andy Brown 7dea1213f0 release: 1.0.1 release notes (#3310)
* update changelog script to use tags

* add 1.0.0 release notes, deprecate 4.X

* add 1.0.1 release notes

* update pr check to no longer check stable branch
2020-06-03 14:37:16 -07:00
Zhixiang Zhan 8ee2fbf75d fix: suppress websocket error after connection lost (#3270)
* report bug template add `Electron`

* mute LSP WebSocket connection lost pop up error

* refine re-connection

* use SendRequestWithRetry

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
2020-06-03 09:54:56 -07:00
Andy Brown 1b8c3a0bfb ci: disable docker build workflow (#3212)
* disable docker build ci for now

* use defaults to set working dir

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
2020-05-28 19:24:32 -07:00
Andy Brown 11a2d960c1 build: update typescript, eslint, prettier and more (#3125) 2020-05-21 08:45:46 -07:00
Ben Yackley e59d1de1ea ci: update utils.ts to allow for "#minor" tag (#3148)
* Update utils.ts

* typo fix
2020-05-20 10:08:47 -07:00
Andy Brown 45f226d267 ci: add base path for coveralls action (#3131)
* add base path for coveralls action

* bump coveralls
2020-05-19 09:19:06 -07:00
Ben Brown 7232d1c49f feat: azure publish plugin (#2733)
* split the configuration as object

* fix deployment script, change settings path

* fix bugs in deploy script and change credential type:

* finish gethistory, getstatus, update history and status after publish

* add some code comments for clarity
add many TODOs in code

* more code comments

* more code comments for clarity

* add login script and hash the config as folder name

* add bot deploy package build into lib build

* split the provision part out of composer

* fix luis appid unfound error

* fix typo

* polish

* use bot root to config the path of settings

* differ bot to different layer

* change the order of loading settings

* update schema

* change login and provision script, from save file to output to console

* add comment

* fix merge conflict

* format resulting profile

* add comment about security

* use Bearer token auth when doing zipdeploy
remove use of websiteclient

* move provision out of composer, and make sure it not depend on internal package

* add provision subfields schema

* use token replace the credential

* fix output of token

* change the error message when token expire

* add provision error details, add configurable

* update schema require and log message return

* fix parse

* fix template

* update schema and provision script

* fix provision luis configurable

* detail the token's error handle

* Add support for using the ejected runtime code instead of the built in template when publishing to Azure

* Make it optional to persist the history to disk.
Keep it in memory instead.

* move provision script into shared asset folder that is copied into all new projets
change hashing to include bot name to avoid possible overlap when using shared resources

* add to readme

* more readme

* more readme

* clean up tmp folder after publish completes or fails

* remove empty config in provision and appPassword in provision result, Change provision default to true

* add token error handle when zipdeploy fail

* improve output of provision script:
* add usage if missing parameters
* colorize and format output
* add some additional error formatting

* improve output

* remove webManagerClient and use token instead

* clean up the order of fields, remove unused fields from profile
update schema with full form

* use publisher description rather than package name

* feat: Runtime refactor, new directory structure and Azure Function introduction phase 1 (#2855)

* Runtime: new folder structure, refactor common c# code into core, create function runtime

* Remove deprecated Bot Project

* Runtime: Fix tests

* Update runtime code owners

* Runtime: Part 1 of updating composer server to honor new runtime paths

* Runtime: tweaks for local publish to run prior to merge

* Runtime: fixes post merge

* Update azure publish to use the azure web app template.

* Azure publish: update bot project deploy to new directory structure

* Fix codeowners alias mistake

* Revert "Merge branch 'master' of https://github.com/microsoft/BotFramework-Composer into wenyluo/azure"

This reverts commit af077e248e47e32750629dee7b9b8c8c6e98d84a, reversing
changes made to e24071d0ddbce5554d498c1ba34eb18a93b8948d.

* WebApp + new runtime: deployment and local runtime all working

* Runtime: move nuget.config to dotnet runtime root

* Asset manager: add mock folder to reflect new runtime structure

* Local publish: remove unnecessary space

* Runtime: Add copyright header to all missing files

* Fix bad merge

* Runtime: rename js -> node and update readmes

* add an optional instructions field to the publish plugin so we ca nexplain how to get a config

* merge master

* fix linter warning

* handle errors in kill procss

* remove unnecessary dupe fields from schema

* fix for modified schema path

Co-authored-by: Wenyi Luo <wenyluo@microsoft.com>
Co-authored-by: Qi Kang <qika@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
2020-05-05 13:29:51 -07:00
Srinaath Ravichandran 9a540ac610 fix: Script registration for Windows (#2848)
* Added nsis script

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Adding nsis registration for windows

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Removing unused macros

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Fixed production base URL.

* Adding Tony to codeowners

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>
Co-authored-by: Tony Anziano <tonyanziano5@gmail.com>
2020-04-30 14:42:47 -07:00
Srinaath Ravichandran a7dc0962c5 feat: Create a bot through bfcomposer protocol (#2758)
* safety net

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Safe commit for electron

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Test windows installer

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Logs remove

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Reset commits

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

All commits with logs

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Refactored

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Mac working

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Safe commit for Mac and Wimdows

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Code cleanup

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Wrapping up open API

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Revert back to original server

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Remove unused imports

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

PR cleanup

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Moved test to the right folder

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Fix test

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

jest config updated for electron-server

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Creating a bot project

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Create url update

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Create API completed

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Create

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

safe commit

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

routes

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Temporary unstable commit

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Navigation urls fixed

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Example list hooked up

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Stable routes

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Error handling finished

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Update to integration tests

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Defien convo tests

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Define conversation tests wrapped up

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Added unit test for creation flow

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Rerouting base bot url to default dialog

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Updated tests and codeowners

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Typo fixed

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Integrate home in a different workflow

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Check if updating base url fixes tests

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Awaiting fetches

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Removing template id use Effect

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Safe commit

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

More tests passing

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

First pass at making Integration tests pass

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Unit tests fixed

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Removed unused components

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Refactor dialog types

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Revert back home

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Removed logs

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Using query string instead

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Making sure tests pass

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Updated props for define conversation

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Making sure teplate id exists

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Integration tests passing

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Create new bot update

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>
2020-04-27 10:54:50 -07:00