Skip to content
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

Add 'SecondBrain URL' field to tribe settings modal #312

Closed
2 tasks
tomsmith8 opened this issue Feb 21, 2024 · 14 comments
Closed
2 tasks

Add 'SecondBrain URL' field to tribe settings modal #312

tomsmith8 opened this issue Feb 21, 2024 · 14 comments
Assignees

Comments

@tomsmith8
Copy link

tomsmith8 commented Feb 21, 2024

Task

Add a new field to Tribe Settings called SecondBrain URL

  • New field in Tribes schema called second_brain_url
  • Add new input field to paste in a URL
image

Acceptance Criteria

  • Add new field to Tribe Settings called Second Brain URL
  • Variable in schema to use is second_brain_url
@Khaalid-oh
Copy link

@saif

@tomastiminskas
Copy link
Contributor

@tomsmith8 I'm testing the changes @Khaalid-oh did for this but it seems the server is not prepared to handle this. The cause of the issue could be in 2 different places:

  • Tribes server not handling this new param as it should
  • Relay server not handling it as it should (create and edit Group endpoints are relay endpoints that then hit tribes server endpoint to create/update the tribe). So maybe relay changes were not done yet or my relay is not deployed with the new changes.

Without those changes ready and deployed to my node I can't really test this out
Any idea on what's the state of the server side changes for this?

@tomsmith8
Copy link
Author

Let me check in with @tobi-bams for this and get back to you

@tobi-bams
Copy link

@tomastiminskas please which node are using to test, so I can deploy the latest relay change?

@tomastiminskas
Copy link
Contributor

@tobi-bams it's my main node. Public key: 027dbce35947a3dafc826de411d97990e9b16e78512d1a9e70e87dcc788c2631db

Let me know when it's deployed please

@tomastiminskas
Copy link
Contributor

@tobi-bams I was testing this on my main node and it worked great. But while testing I found a bug that seems to be old. So as now we have a new field for second_brain_url, I tried to reset the app_urlof my tribe to an empty value and it seems the update doesn't work. I debug the params being sent to my relay and I'm actually sending "" (empty string) for app_url, but when I get tribe info back from tribes server it comes with the old value again.

Not sure if the issue is on relay or tribes server but something is preventing the app to set en empty value for that field

@tobi-bams
Copy link

@tobi-bams I was testing this on my main node and it worked great. But while testing I found a bug that seems to be old. So as now we have a new field for second_brain_url, I tried to reset the app_urlof my tribe to an empty value and it seems the update doesn't work. I debug the params being sent to my relay and I'm actually sending "" (empty string) for app_url, but when I get tribe info back from tribes server it comes with the old value again.

Not sure if the issue is on relay or tribes server but something is preventing the app to set en empty value for that field

Hmmmmmm....

I guess this is a relay issue, lemme take a look.

@tomastiminskas
Copy link
Contributor

@tobi-bams any update on this? Also once it's fixed and tested let's deploy this fix and the second_brain_url addition to all nodes including proxy so I can release a version with the changes

@tomsmith8
Copy link
Author

@Evanfeenstra - Tobi is off today and tomorrow, reckon you could pick this small change up?

This is the issue @tomastiminskas is talking about:

as now we have a new field for second_brain_url, I tried to reset the app_urlof my tribe to an empty value and it seems the update doesn't work. I debug the params being sent to my relay and I'm actually sending "" (empty string) for app_url, but when I get tribe info back from tribes server it comes with the old value again.

Not sure if the issue is on relay or tribes server but something is preventing the app to set en empty value for that field

@tomsmith8
Copy link
Author

@Evanfeenstra nevermind, Tobi has a fix for this already!

@tobi-bams
Copy link

@Evanfeenstra please can you help review this PR: stakwork/sphinx-relay#808

@tobi-bams
Copy link

@Evanfeenstra currently, the tribe server does not store an empty string when it's passed from the client.

Please can we ensure the tribe server stores an empty when app_url, feed_url or second_url is passed as an empty string

@tomsmith8
Copy link
Author

Thanks @tobi-bams

@Evanfeenstra I think Raphael is off too. Reckon you could make the change above to the tribes server?

@tomsmith8
Copy link
Author

Ok, If we can update Relay, we can test this. If it cannot set the string to being empty we'll have to make the additional change on the tribes Server.

@Evanfeenstra Could you update relay so Tom T can test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants