Skip to content
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

[Edit-In Excel] Improve metadata handling #1721

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

DenLilleMand
Copy link
Contributor

@DenLilleMand DenLilleMand commented Aug 5, 2024

Summary

Currently metadata errors only appear when you open the Exported Excel Workbook, it is not clear if:

  1. It is something that the user can do something about them selves.
  2. If it is a Microsoft code issue.
  3. If it is a Partner code issue.

This change sets out to lessen the confusion about these errors and make the feedback instantaneous in cases where it was not possible to generate the required metadata.

This change should also be accompanied by documentation updates on how the users can debug metadata generation failures.

Work Item(s)

Fixes AB#542840

@DenLilleMand DenLilleMand requested a review from a team as a code owner August 5, 2024 11:52
@github-actions github-actions bot added this to the Version 25.0 milestone Aug 5, 2024
@DenLilleMand DenLilleMand self-assigned this Aug 5, 2024
@@ -14,6 +15,42 @@ codeunit 1481 "Edit in Excel"
{
Access = Public;

procedure CreateMetadataWebRequest()
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats with this procedure?
Does nothing? Init local variable and one declared variable not used.

@@ -14,6 +15,42 @@ codeunit 1481 "Edit in Excel"
{
Access = Public;

procedure CreateMetadataWebRequest()
var
EnvironmentInfo: Codeunit "Environment Information";
Copy link
Contributor

Choose a reason for hiding this comment

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

This one should be name space using System.Environment;

@@ -5,6 +5,7 @@

namespace System.Integration.Excel;

using System;
Copy link
Contributor

Choose a reason for hiding this comment

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

using System.Environment;

EntitySetName: Text;
begin
MetadataUrl := 'https://metadatastoragexyz.blob.core.windows.net/metadata/metadata.xml?sp=r&st=2024-08-02T09:38:22Z&se=2024-08-02T17:38:22Z&spr=https&sv=2022-11-02&sr=b&sig=eP4pvx1m1OiiGVhYVD4haMIYvSgOAWIUysk3mD7h8Ds%3D';
EntitySetName := 'Company';
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this necessary as variable, could be hardcoded with //edm:EntitySet[@name="

begin
MetadataUrl := 'https://metadatastoragexyz.blob.core.windows.net/metadata/metadata.xml?sp=r&st=2024-08-02T09:38:22Z&se=2024-08-02T17:38:22Z&spr=https&sv=2022-11-02&sr=b&sig=eP4pvx1m1OiiGVhYVD4haMIYvSgOAWIUysk3mD7h8Ds%3D';
EntitySetName := 'Company';
if HttpClient.Get(MetadataUrl, HttpResponseMessage) then
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need any authentication?
image

@DenLilleMand DenLilleMand marked this pull request as draft August 8, 2024 13:56
@DenLilleMand
Copy link
Contributor Author

@StefanSosic I'm just prototyping some stuff .. I changed this into a draft PR instead.

@StefanSosic
Copy link
Contributor

@StefanSosic I'm just prototyping some stuff .. I changed this into a draft PR instead.

@DenLilleMand Sorry and thanks! Let's review it than when ready :)

@aholstrup1 aholstrup1 modified the milestones: Version 25.0, Version 26.0 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants