question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pages -> skipping configuration

See original GitHub issue

Description

When using this cli to deploy, it ignores pages configuration even though we have "enabled": false on the json file. Giving this warning: warn: Skipping pages file modules/tenant/tenant-name/pages/login.json as missing corresponding '.html' file

This happens, as the warning says, if we don’t have the corresponding .html file and are missing the html property on the json file.

The current solution is to add the .html property and point it to a newly created .html empty file.

It would be nice if we didn’t had to add the html property to login.json (or other pages) and create an .html file if we had "enabled": false on the json file.

Reproduction

On the pages folder have one of your .json files with “enabled” set to false and make sure you don’t have the html property like so:

{
  "name": "login",
  "enabled": false
}

Optional step: you can go to your auth0 dashboard, to the tenant you are about to redeploy, go to “Universal Login” -> tab “Login” and enable the “Customize Login Page” switch.

Now deploy your new configuration. You will notice a warning like the one mentioned above: warn: Skipping pages file modules/tenant/tenant-name/pages/login.json as missing corresponding '.html' file

If you did the optional step, you will notice that the “Customize Login Page” switch is still enabled even though you clearly set it to false on the json file.

Environment

Using auth0-deploy-cli v7.3.7

Thank you for your hard work. Best regards, Jorge Alves

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
willveddcommented, Aug 24, 2022

This has been addressed with v7.14.3. I’d like to reiterate that I’m not sure that this type of flexibility is wise for the longterm of this project. We’re starting to think about the positioning of this project and how it augments the Terraform Provider; better ideate the core principles. But for now, I’m hoping this alleviates some trouble for folks.

1reaction
willveddcommented, Feb 22, 2022

Hi Jorge, thanks for opening this ticket. I agree that this is an issue and seemingly annoying too. At first glance it’s very similar to #293 which has a similar root cause IIRC. That error you’re receiving stems from the library and not the Auth0 API like most errors that are encountered, but that’s a good thing because it suggests that the fix is a bit smaller in scope. We can certainly make that mechanism a bit smarter, including an enabled check, but we would need to investigate a generalized solution for all resource types.

In the meantime, I think creating an empty HTML template is a sensible workaround, albeit unideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Word skips pages - Microsoft Community
I have a document with several sections. I am trying to get each section to start on an odd page for printing purposes....
Read more >
How to stop MS Word from skipping pages? - Super User
The 'skipped' pages because of section breaks are intentionally left blank. It is how Word is designed. If you want your header/footer and ......
Read more >
How to Skip Page Numbering for Pages That Shouldn't be ...
Use Paragraph Numbering Instead​​ give that paragraph a numbered list, and make sure you create and use a List that spans across stories...
Read more >
How to skip pages in a numbered document in Microsoft Word
The trick to skipping pages in a numbered document is to use section breaks. The best way to do this is to first...
Read more >
Indexmenu - TOC configuration for skipping pages.
We also have to create a blank page to force a namespace so that pages will sort properly. So then we have to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found