I took a course on LinkedIn Learning about ChatGPT used for coding. Here are some notes.
Tag: web development
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
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: unauthorized, after replacing database
Solution: clear cookies and session cache in your browser.
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:
cors-test.codehappy.dev
Salvez asta aici: https://cors-test.codehappy.dev
Plone 6, Volto: find items containing a block
In my case I searched for items that contains any kind of “form” block: Register a view (MyView): configure.zcml admin.py Then go to localhost:8080/Plone/my-view
KeyError brain in getObject Plone 6
I received this error because of some issues with portal catalog. A folder containing images was deleted but the catalog was not updated correctly. my-obj-path was just one of the 899 images. I created in Management Interface a python script to find all broken brains: Then, the solution was to go to Catalog and press…