SKUID SFDX

edited August 25, 2020 in Questions
Hello,

This post is more of to see if this only happening to me and i'm doing something wrong, also to see if there is any development being done for SKUID SFDX.

1. Longer XML get cut off when I pull ( I can see that lines are missing), but original file has roughly 14k lines of XML, squished into roughly 8k lines.
2. Longer XML get also cut off when I push (i can see that lines are missing).
3. When pulling, XML of SKUID page gets messed up or at least JS Snippets. I noticed that JS Snippets gets squished into one line and that probably messes up syntax somehow. (Not always, but) most of the time I get an unexpected token error message.
4. After pulling a SKUID page from an org, and pushing it into another Org, I get error messages related to REST models.

To add to points 1 and 2, it's hard to say what is the threshold since the code gets squishes, but the XML is definitely not over the hard limit since they are working on the org that they came from.

I would appreciate any information on SKUID SFDX.

Best Regards,
Lukas

Best Answer

Answers

  • Hi lukaspovilonis, thanks for bringing these issues to our attention.

    For #4, do you have the same REST data source(s) set up in both orgs with the same name(s)? Deploying the pages to the org doesn't affect the data sources, you need to configure these separately.

    For #1-3, the team is looking into these questions and will respond when we have more insight.

  • Here are a few updates:

     1. Longer XML get cut off when I pull ( I can see that lines are missing), but original file has roughly 14k lines of XML, squished into roughly 8k lines.

    For this one, is Skuid actually stripping out content from the original file (e.g. specific lines of XML or JS code), or just compressing things like JS code? Skuid compresses JS code when this operation happens, but doesn't actually REMOVE any content from the page (i.e. the page should function the same if you copied/pasted that XML back into your Salesforce org).

    2. Longer XML get also cut off when I push (i can see that lines are missing).

    This has been logged as a known issue in our tracking system. There is not a target date for getting this issue addressed yet but our devs are aware of it. We will let you know when the fix is available.

    3. When pulling, XML of SKUID page gets messed up or at least JS Snippets. I noticed that JS Snippets gets squished into one line and that probably messes up syntax somehow. (Not always, but) most of the time I get an unexpected token error message.

    As mentioned under #1, Skuid SFDX does compress JS. In general, this should NOT break the snippets in runtime. Are you getting the unexpected token error message in the App Composer or runtime? If you don't mind sharing your page XML as an attachment, that would be helpful here.

    4. After pulling a SKUID page from an org, and pushing it into another Org, I get error messages related to REST models.

    Do you have the same REST data source(s) set up in both orgs with the same name(s)? Deploying the pages to the org doesn't affect the data sources, you need to configure these separately.

    1. Sorry, I was not able to re-produce the issue that I originally had, most likely I made a mistake on my end.
    2. Thank you.
    3. I get the error in runtime, the page doesn't load (I assume it calls an inline function onload) and I get an error called "Uncaught SyntaxError: Unexpected token ')'", in other pages it's a "." instead of ")". I have email a Rob Hatch (regarding Skuid CLI) with a file of original XML (before the page is pulled with sfdx) that produces this and 2. error. Would you be able to get the file from Rob? To recreate, create a page in composer, paste XML, pull with sfdx and paste the pulled XML with sfdx back into composer.
    4. Most likely that was the issue, thank you for the suggestion.

    Thank you very much for the effort you're putting in and looking forward to the updates.

  • Thank you Emily for the update. I got it installed and running. I'm definitely not hitting any errors that I did before. I will be back if I encounter any errors.

    For future, should I post any troubles I encounter on Skuid Community or Skuid sfdx Github?

    Thank you.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!