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.

It is easy to put docs in the trash in draft, but hard to discover how to commit that

See original GitHub issue

I noticed that Apostrophe changes the slug of a page when it’s moved to the trash in order to avoid conflicts with other pages that may be live (as per #1455). However, the slug seems to only be changed for the draft version of the trashed page, not for the live version. You have to manually commit the trashed page to avoid slug conflicts with other pages in the tree.

Here are the steps I took to reproduce the problem:

  1. I’m using apostrophe@2.64.1 and apostrophe-workflow@2.12.0
  2. I create a new page with the slug /fredrik-s-page
  3. Without making any changes to that page (or commiting it), I move it to the trash
  4. I create another page with the slug /fredrik-s-page
  5. I add some content to that page and commit it

Expected outcome: the URL should be the same between the draft and live versions of the second page Actual outcome: while in draft mode, the URL remains example.com/se/fredrik-s-page, but in live mode, it becomes something like example.com/se/fredrik-s-page8. This can only be fixes by going to the settings of the first page and manually commiting it, and then commiting the second page again.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
boutellcommented, Oct 10, 2018

Reopened with a more suitable title.

0reactions
fredrikekelundcommented, Oct 10, 2018

Great! Happy to do what I can to contribute a PR once we’ve decided on how we want the UX to behave. Also, we could move this to the apostrophe-workflow repo now that we’re narrowed down the scope of the issue somewhat, since I suppose that’s where the PR will end up

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete and restore files in Google Drive - Computer
To delete your Google Drive files, move them to the trash. Files in trash will be automatically deleted after 30 days. You can...
Read more >
Revising Drafts - UNC Writing Center
This handout will motivate you to revise your drafts and give you strategies to revise effectively. What does it mean to revise? Revision...
Read more >
How to remove/delete a large file from commit history in the Git ...
This is a wonderfully thorough answer explaining the use of git-filter-branch to remove unwanted large files from history, but it's worth noting ...
Read more >
Birth Certificate Fraud (OEI-07-99-00570
and that fraudulent birth certificates are easy to obtain. ... Birth Certificate Fraud is Hard to Detect ... to detect include the following:....
Read more >
Protecting Personal Information: A Guide for Business
Know what personal information you have in your files and on your computers. ... risk that the information could be used to commit...
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