Skip to content

Commit b2385f5

Browse files
Tom Laird-McConnellEric Dahlvangcarlosscastromrivera-msgabog
authored
Merge 4.9 back to master (#4032)
* Do NOT call TeamsInfo.getMember for the bot (#3923) * Do NOT call TeamsInfo.getMember for the bot * Add TestConversationUpdateBotTeamsMemberAdded * Declarative: disable cycle detection to reduce release risk * Update Nuget.Client to resolve circular reference exceptions (#3964) * Fixes BadRequest message in Teams (#3966) * Added check to ensure we don't send EoC when a skill is done and we are at the root bot. Updated tests to handle this case and removed duplicated test after refactoring. Fixed some typos and trace message names. * Auth: Tighten JWT validation of channel-issued tokens with certificate signature (#3978) * Auth: Tighten JWT validation of channel issued tokens with certificate signature * Fix comment in test * Auth improvements: add test category and adjust linux build settings * Auth tests: cleanup self-signed certs after tests * Change filter to "TestCategory". (#3986) * Don't throw exception on unhandled VersionChangeDetected event (#4000) * disable throwing exception if dialog change not handled * remove trace from versionChanged Co-authored-by: Eric Dahlvang <v-eridah@microsoft.com> Co-authored-by: Carlos Castro <ccastro@microsoft.com> Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com> Co-authored-by: Gabo Gilabert <gabog@users.noreply.github.com> Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com> Co-authored-by: BruceHaley <v-bruhal@microsoft.com>
1 parent a85f244 commit b2385f5

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

libraries/Microsoft.Bot.Builder.Dialogs.Declarative/Resources/ResourceExplorer.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,6 @@ private T Load<T>(JToken token, SourceContext sourceContext)
506506
}
507507
}
508508

509-
// Create a cycle detection observer
510-
var cycleDetector = new CycleDetectionObserver();
511-
512-
// Register our cycle detector on the converters that support observer registration
513-
foreach (var observableConverter in converters.Where(c => c is IObservableConverter))
514-
{
515-
(observableConverter as IObservableConverter).RegisterObserver(cycleDetector);
516-
}
517-
518509
var serializer = JsonSerializer.Create(new JsonSerializerSettings()
519510
{
520511
TypeNameHandling = TypeNameHandling.Auto,
@@ -530,13 +521,6 @@ private T Load<T>(JToken token, SourceContext sourceContext)
530521
}
531522
});
532523

533-
// Pass 1 of cycle detection. This pass fills the cycle detector cache excluding cycles.
534-
var pass1Result = token.ToObject<T>(serializer);
535-
536-
cycleDetector.CycleDetectionPass = CycleDetectionPasses.PassTwo;
537-
538-
// Pass 2 of cycle detection. This pass stitches objects from the cache into the places
539-
// where we found cycles.
540524
return token.ToObject<T>(serializer);
541525
}
542526

tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/ActionTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public async Task Action_ReplaceDialog()
250250
}
251251

252252
[TestMethod]
253+
[Ignore]
253254
public async Task Action_ReplaceDialogRecursive()
254255
{
255256
await TestUtils.RunTestScript(ResourceExplorer);

tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/JsonLoadTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ await BuildTestFlow(@"DoubleReference.dialog")
4848
}
4949

5050
[TestMethod]
51+
[Ignore]
5152
public async Task JsonDialogLoad_CycleDetection()
5253
{
5354
await BuildTestFlow(@"Root.dialog")

0 commit comments

Comments
 (0)