hash icon indicating copy to clipboard operation
hash copied to clipboard

Implement `PageModel` class

Open benwerner01 opened this issue 3 years ago • 1 comments

🌟 What is the purpose of this PR?

This PR introduces the PageModel class, and basic ordered link functionality temporarily implemented in the LinkModel class.

🔗 Related links

🔍 What does this change?

  • adds the page-related workspace types:
    • archived, summary, title, index property types
    • Page entity type
    • contain link type
  • adds the text-related workspace types:
    • tokens property type
    • Text entity type
  • adds the required LinkModel methods for creating/updating/removing ordered links (to allow for ordered blocks in pages)
  • adds the PageModel class

📜 Does this require a change to the docs?

No.

⚠️ Known issues

  • tests are not passing when run using single command (asana task)

🐾 Next steps

🛡 What tests cover this?

  • link.model.test.ts has been updated to test ordered link functionality
  • page.model.test.ts has been added to test page-related functionality

❓ How to test this?

Check the backend integration tests in CI, or run the backend integration tests locally.

📹 Demo

benwerner01 avatar Sep 21 '22 16:09 benwerner01

This pull request introduces 1 alert when merging c75624bff80623507f2e64e66d4c18f2ce89fc16 into d9d542a3534c6f9f198625080625db45491ef909 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

lgtm-com[bot] avatar Sep 22 '22 15:09 lgtm-com[bot]