-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native support of Notion #4
Comments
@milanvarady For Notion integration, we will be using the latest pre-compiled macOS binary from CSV2Notion Neo. We have fixed some of the core bugs. Thank you. |
For each Notion Profile we can have 2 operation - Default Mode (Merge With Existing Database is always checked) Both We use this. #!/bin/sh
TOOL_PATH="REPLACE"
NOTION_TOKEN="REPLACE"
NOTION_URL="REPLACE"
UPLOAD_CSV="REPLACE"
UPLOAD_LOG="REPLACE"
$TOOL_PATH --token $NOTION_TOKEN --url $NOTION_URL --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --icon-column "Icon Image" --max-threads 5 --merge --log $UPLOAD_LOG "$UPLOAD_CSV" When Merge With Existing Database is unchecked, You would need to use this when Merge With Existing Database is unchecked. #!/bin/sh
TOOL_PATH="REPLACE"
NOTION_TOKEN="REPLACE"
NOTION_URL="REPLACE"
UPLOAD_CSV="REPLACE"
UPLOAD_LOG="REPLACE"
$TOOL_PATH --token $NOTION_TOKEN --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --icon-column "Icon Image" --max-threads 5 --log $UPLOAD_LOG --verbose "$UPLOAD_CSV" We don't need to use |
@milanvarady With the shift to We now have one more field under the Notion Tab. When users add Notion URL TOOL_PATH="/Applications/Marker Data.app/Contents/Resources/csv2notion_neo"
NOTION_TOKEN="REPLACE"
NOTION_URL="REPLACE"
UPLOAD_PAYLOAD="REPLACE"
UPLOAD_LOG="/Users/UserID/Library/Application Support/Marker Data/Logs/airlift_log.txt"
$TOOL_PATH --token $NOTION_TOKEN --url $NOTION_URL --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --icon-column "Icon Image" --payload-key-column "Marker ID" --max-threads 5 --merge --log $UPLOAD_LOG --verbose "$UPLOAD_PAYLOAD"
When users don't add URL $TOOL_PATH --token $NOTION_TOKEN --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --icon-column "Icon Image" --payload-key-column "Marker ID" --max-threads 5 --log $UPLOAD_LOG --verbose "$UPLOAD_PAYLOAD"
When users use Rename Key Column. $TOOL_PATH --token $NOTION_TOKEN --url $NOTION_URL --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --payload-key-column "Marker ID" --rename-notion-key-column "Marker ID" "VALUE" --max-threads 5 --merge --log $UPLOAD_LOG --verbose "$UPLOAD_PAYLOAD"
We now have an additional switch If the field is empty, we don't use this |
I added the |
Let me investigate. |
As discussed, the error was thrown due to usage of different Notion Database. We will try to improve the error handling in the next build of CSV2Notion Neo. Rename Key Column works! |
Use this latest build 1.1.2 build. We have improved the error handling. https://github.com/TheAcharya/csv2notion-neo/releases/tag/v1.1.2 |
@milanvarady We have some significant changes to the codebase of CSV2Notion Neo in hindsight for future enhancement and maintenance of codebase. Due to that we now have a new required switch Hence, we meed to add a new field called Updated .sh Script. #!/bin/sh
TOOL_PATH="/Applications/Marker Data.app/Contents/Resources/csv2notion_neo"
NOTION_WORKSPACE="REPLACE"
NOTION_TOKEN="REPLACE"
NOTION_URL="REPLACE"
UPLOAD_PAYLOAD="REPLACE"
UPLOAD_LOG="/Users/UserID/Library/Application Support/Marker Data/Logs/airlift_log.txt"
$TOOL_PATH --workspace "$NOTION_WORKSPACE" --token $NOTION_TOKEN --url $NOTION_URL --image-column "Image Filename" --image-column-keep --mandatory-column "Marker ID" --icon-column "Icon Image" --payload-key-column "Marker ID" --max-threads 5 --merge --log $UPLOAD_LOG --verbose "$UPLOAD_PAYLOAD" To know your workspace name - https://www.notion.so/help/workspace-settings# If you workspace name is Thank you. |
I added the workspace field and update CSV2Notion to v1.2.1 |
Thanks Milan! You can include the entitlements.plist file into the Resources. Just for reference. |
@milanvarady We need to add one key aspect to our Notion module. It is called "Merge Only". It allows users to update their existing database with new values and images. These are following
When users selects them, it would be: When user selects one or more, it would be added consecutively like: When nothing is selected, the arguments would not be used. There are 3 possible ways to implement this. Checkbox method - With Checkbox method, users would check and uncheck the columns that they Tag Method - With Tag method, users simply type the first few letters to auto complete the column name. If user wants to remove it, they can select the tag and press https://github.com/issetwo/tagform Selection Method - With Selection method, users click to select and again click to un-select. Users can hold on to |
@IAmVigneswaran I added the merge-only columns option. I went with the checkbox method because that was the simplest to implement. Also, I updated the CSV2Notion binary to v1.2.3. |
@milanvarady Thanks for adding merge-only columns options! After testing, I realised that there is bug with CSV2Notion Neo binary when merging Will report back as soon we have updated and Fixed CSV2Notion Neo. Can the Some UI Tweaks -
Thank you! |
It wouldn't be obvious that the clear button belongs to the merge-only option. It would suggest that it clears the whole form. |
Or could we remove the |
How would users know that the shortcut exists without a button? I can only assign shortcuts to an existing UI element. I think we keep it how it is or remove it completely. |
Via our help documentation?
Not sure if this is possible. Are we able to "hide" the https://forums.developer.apple.com/forums/thread/678323 We can remove it, if we can't add the shortcut. |
I added an invisible button with the shortcut ⌘+⇧+D. |
https://markerdata.theacharya.co/user-guide/keyboard-shortcuts/#databases |
@milanvarady We have update CSV2Notion Neo to 1.2.4. You can update the binary. https://github.com/TheAcharya/csv2notion-neo/releases/tag/v1.2.4 Line 32 in b591fd6
Could you add |
Added. |
We will be using the latest pre-compiled macos binary from this project.
The latest version is 0.3.8
The text was updated successfully, but these errors were encountered: