I took a course on LinkedIn Learning about ChatGPT used for coding. Here are some notes.
Category: Docs
Sentry errors exclude by URL
To see errors for a particular URL you can use: is:unresolved url:https://website.com/my/url But if you want to exclude the errors from this URL, this will do the work: is:unresolved !url:https://website.com/my/url
Git commit to new branch
$ git checkout -b new_branch $ git status $ git add . $ git commit -m “Message” $ git push –set-upstream origin new_branch (or $ git push and copy paste the suggestion)
.layout issue in Plone
Go to blobstorage folder, edit .layout Change: bushy -> zeocache
Restore deleted images Plone 6
Having a ABCPlone6Website.blabla with ABCPlone6Staging.blabla, let’s say you delete some images and you want to restore them from staging website. My method was to: The script:
Plone 6, random debug commands
cat docker-entrypoint.sh cat /etc/passwd ls data/cache id -u plone su – plone stat /app/var…lock sudo rm data/filestorage/Data.fs.lock id -u (mounted type fakeowner data -> permission denied on data) docker context ls (ok: default, wrong: Docker Desktop)
Plone 6: unauthorized, after replacing database
Solution: clear cookies and session cache in your browser.
UID to object in Plone
(Pdb) from plone.app.uuid.utils import uuidToObject(Pdb) uuidToObject(’40asdasde33′)<Product at /Plone/en/blabla/something>
JavaScript to TypeScript
Problem: You need to convert a big JavaScript project to TypeScript. Solution: ts-migrate
Local test empty plone backend
Just some notes: