Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const validateResourceId = (resourceId: string): string => {
export const fetchAppsByQuery = async (query: string, subscriptions?: string[]): Promise<any[]> => {
const requestPage = async (subscriptions?: string[], value: any[] = [], pageNum = 0, currentSkipToken = ''): Promise<any> => {
try {
const pageSize = 500;
const pageSize = 300;
const { data } = await axios.post(
'https://edge.management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export const TreeActionItem = ({ id, content, icon, repetitionName, treeItemProp
);
}
} else if (
data?.repetition.type === 'workflows/runs/actions/agentRepetitions/tools' ||
data?.repetition.type === 'workflows/runs/actions/agentRepetitions/actions'
data?.repetition?.type === 'workflows/runs/actions/agentRepetitions/tools' ||
data?.repetition?.type === 'workflows/runs/actions/agentRepetitions/actions'
) {
// Only update parent if the parent repetition index has changed
const repetitionIndex = data?.repetition?.properties?.repetitionIndexes?.[0];
Expand All @@ -177,7 +177,7 @@ export const TreeActionItem = ({ id, content, icon, repetitionName, treeItemProp
dispatch(updateAgenticMetadata(updatePayload));
}

if (data?.repetition.type === 'workflows/runs/actions/agentRepetitions/tools') {
if (data?.repetition?.type === 'workflows/runs/actions/agentRepetitions/tools') {
// Only update tool if the tool repetition index has changed
if (itemRunIndex !== selectedRunIndexForItem) {
dispatch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ describe('version helpers', () => {
expect(isVersionSupported('999.999.999', '1.0.0')).toBe(true);
expect(isVersionSupported('1.0.0', '999.999.999')).toBe(false);
});

it('should handle versions with >3 parts by ignoring extra parts', () => {
expect(isVersionSupported('2.0.1.0', '2.0.1')).toBe(true);
expect(isVersionSupported('1.0.0.2', '2.0.1')).toBe(false);
});
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const parseVersion = (version: string): [number, number, number] => {
}

const parts = version.split('.');
if (parts.length !== 3) {
if (parts.length < 3) {
throw new ArgumentException(`Invalid version format: "${version}". Expected format: "major.minor.patch"`);
}

Expand Down
Loading