-
Notifications
You must be signed in to change notification settings - Fork 379
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
feat: simplify boards2
implementation
#3115
feat: simplify boards2
implementation
#3115
Commits on Nov 12, 2024
-
feat: add
assertIsBoardName()
functionAlso changed the expression to validate board names to check that the name starts with three letters and ends with three numbers. This has been defined this way to match `users` realm implementation. See: gnolang#2827 In a next iteration we can support vanity names for boards, once vanity names are supported for the `users` realm.
Configuration menu - View commit details
-
Copy full SHA for 3d0e592 - Browse repository at this point
Copy the full SHA 3d0e592View commit details -
feat: change ID types to have a
Key()
methodThis change simplifies the code and allow removing some private functions. The changeset also have minor semantic changes to the existing code.
Configuration menu - View commit details
-
Copy full SHA for 45c971a - Browse repository at this point
Copy the full SHA 45c971aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b078c3f - Browse repository at this point
Copy the full SHA b078c3fView commit details -
feat: change public realm func to use asserts for anonymous fees
Asserts were moved to specific functions which also removes duplication.
Configuration menu - View commit details
-
Copy full SHA for 24546d2 - Browse repository at this point
Copy the full SHA 24546d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fca2bf5 - Browse repository at this point
Copy the full SHA fca2bf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d066545 - Browse repository at this point
Copy the full SHA d066545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83a9393 - Browse repository at this point
Copy the full SHA 83a9393View commit details -
Configuration menu - View commit details
-
Copy full SHA for e95177f - Browse repository at this point
Copy the full SHA e95177fView commit details -
chore: rename
misc.gno
toformat.gno
Board getter and ID incrementer were moved to `boards.gno` file.
Configuration menu - View commit details
-
Copy full SHA for 9b514aa - Browse repository at this point
Copy the full SHA 9b514aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfce60d - Browse repository at this point
Copy the full SHA bfce60dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a84bdb - Browse repository at this point
Copy the full SHA 5a84bdbView commit details -
feat: add
mustGetBoard()
functionDone to simplify realm code and remove redundancy.
Configuration menu - View commit details
-
Copy full SHA for b3cb5db - Browse repository at this point
Copy the full SHA b3cb5dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f1f4de - Browse repository at this point
Copy the full SHA 3f1f4deView commit details
Commits on Nov 13, 2024
-
refactor: split
DeletePost
intoDeleteThread
&DeleteReply
The `DeletePost()` public function was confusing and in case of thread it required an argument to be zero. The generic post concept should not be exposed to users to keep the public realm API easy to understand.
Configuration menu - View commit details
-
Copy full SHA for b4d35bf - Browse repository at this point
Copy the full SHA b4d35bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 318d3ef - Browse repository at this point
Copy the full SHA 318d3efView commit details -
feat: add
mustGetThread
&mustGetReply
funcsThis allows removing a lot of redundant code.
Configuration menu - View commit details
-
Copy full SHA for c9b8a3a - Browse repository at this point
Copy the full SHA c9b8a3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44a8a35 - Browse repository at this point
Copy the full SHA 44a8a35View commit details -
refactor: change
Post.GetReply
to also return "found" booleanReturning "found" encourages users to check to avoid invalid memory access and also follows a pattern already stablished in Gno packages which is a good practice.
Configuration menu - View commit details
-
Copy full SHA for 69b0bed - Browse repository at this point
Copy the full SHA 69b0bedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e15250 - Browse repository at this point
Copy the full SHA 5e15250View commit details -
Configuration menu - View commit details
-
Copy full SHA for 147945d - Browse repository at this point
Copy the full SHA 147945dView commit details -
refactor: change board URL to be dynamic
THis changeset removes the board url field and uses standard library functions to generate the relative board URL instead of using a hard-coded one.
Configuration menu - View commit details
-
Copy full SHA for 8c02d71 - Browse repository at this point
Copy the full SHA 8c02d71View commit details