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

Pivot Database to Intent, Entities & Links #2065

Closed
89 of 90 tasks
shervine opened this issue Nov 17, 2018 · 2 comments
Closed
89 of 90 tasks

Pivot Database to Intent, Entities & Links #2065

shervine opened this issue Nov 17, 2018 · 2 comments
Assignees

Comments

@shervine
Copy link
Member

shervine commented Nov 17, 2018

This is a major simplification of our tech stack that will reduce the database objects from 10 tables with 116 columns to 3 tables with 31 columns while maintain same level of functionality. There is a range of new enhancements being introduced in this version, so it's a VERY exciting update!

I will be refactoring every single line and function within the code base for this release, and I will be appending re-factored functions with "fn___" to indicate they are done.

General Todo

  • Create new triple branch and work on there
  • Use 3 different color codes to define each object clearly
  • Make 3 objects visible on header
  • Rename "Subscription" to "Action Plan" and unify across platform Rename "Subscription" to "Action Plan" and unify across platform #2064
  • Implement Content Entity Patterns to auto detect URLs https://mench.com/entities/3307
  • Use crypto terminology in preparation for Mench tokens
  • Add version in console below chat bottom/right
  • Delete old intents for engagement management
  • Sync Algolia and log change transaction within key updating functions in DB Model
  • Test algolia_sync to ensure it syncs metadata properly (See TODO item within) for mass updates
  • Update cron jobs
  • Retire en_user_metadata variable from config
  • Retire is_valid_intent()
  • Search and consider removing all direct queryes "this->db->query("
  • Make sure old query JOIN strings are removed such as 'cr', 'w', 'w_c', 'cr_c_parent', 'cr_c_child'
  • Revamp messages with entities 4299, 4280 & 4277
  • Test Miner message received transactions for Intent Messages vs. Tips Read
  • Remove "fn___" prefix from code-base
  • Send/Receive media from Messenger

Refactor Codebase & Database Tables

Database Tables

  • db/tb_actionplan_links
  • db/tb_actionplans
  • db/tb_engagement_blog
  • db/tb_engagements
  • db/tb_entities
  • db/tb_entity_links
  • db/tb_entity_urls
  • db/tb_intents
  • db/tb_intent_links
  • db/tb_intent_messages

Models

  • models/chat
  • models/database
  • models/matrix
  • models/old (To be retired after mingration) - Search and remove "Old_model"

Config

  • config/config
  • config/matrix_cache (New type of config that is synced with the Matrix)

Helpers

  • helper/echo
  • helper/general

Controllers

  • controllers/Entities
  • controllers/Intents
  • controllers/Ledger
  • controllers/Custom
  • controllers/Migrate
  • controllers/Cron
  • controllers/My
  • controllers/Bot

Javascript

  • js/custom/actionplan-miner
  • js/custom/actionplan-master
  • js/custom/entity-manage
  • js/custom/global
  • js/custom/intent-manage
  • js/custom/matrix
  • js/custom/messaging

Views

  • view_entities/en_miner_ui
  • view_entities/en_login_ui
  • view_entities/en_pass_reset_ui
  • view_intents/in_home_featured_ui
  • view_intents/in_message_iframe_ui
  • view_intents/in_miner_ui
  • view_intents/in_public_ui
  • view_ledger/tr_actionplan_messenger_frame
  • view_ledger/tr_actionplan_messenger_ui
  • view_ledger/tr_actionplan_list_all
  • view_ledger/tr_actionplan_right_column
  • view_ledger/tr_intent_history
  • view_ledger/tr_entity_history
  • view_ledger/tr_miner_ui
  • view_shared/global_js_css
  • view_shared/matrix_footer
  • view_shared/matrix_header
  • view_shared/messenger_footer
  • view_shared/messenger_header
  • view_shared/messenger_nav
  • view_shared/messenger_web_chat
  • view_shared/public_footer
  • view_shared/public_header
  • view_shared/status_legend

0.7 Improvement ideas

  • Detect/prevent duplicate URLs
  • Fix intent mass expand button
  • Add coin stats to Ledger drop down for more visbility
  • Fix but to load Entity Messages with 0 message
  • Fix removal of multiple entity links when removing only one
  • give warning if uploading entity file when transaction content is set (and then remove if agree)
  • Implement child entity link type
  • Sync algolia indexes when changing obj/link statuses for intents/entities
  • Fix intent sorting bug when removing intents
  • Enable drag & drop within levels / OR enable parent/child entity modification
  • Fix entity icon status UI bug
  • Add "last 7 days" miner leaderboard to stats
  • Add People to all Industry experts missing it
  • Update algolia function call to mench.com
@shervine shervine added this to the v0.62 milestone Nov 17, 2018
@shervine shervine self-assigned this Nov 17, 2018
@shervine shervine modified the milestones: v0.62, v0.63 December Nov 20, 2018
@shervine shervine changed the title Focus Platform Structural Design on 4 Main Objects Focus Platform Structural Design on 3 Tables Nov 22, 2018
@shervine shervine modified the milestones: v0.63 December, v0.62 Nov 22, 2018
@shervine shervine changed the title Focus Platform Structural Design on 3 Tables Platform Pivot to a 3 Table Design Nov 27, 2018
@shervine shervine modified the milestones: v0.63 December, v0.64 Dec 4, 2018
@shervine shervine modified the milestones: v0.64, v0.65 Dec 12, 2018
@shervine shervine pinned this issue Dec 14, 2018
@shervine shervine modified the milestones: v0.65, v0.71, v0.69 Triple? Jan 4, 2019
@shervine shervine changed the title Platform Pivot to a 3 Table Design Tech Foundation Pivot to a Triple Object Design: Intent, Entities & Ledger Jan 4, 2019
@shervine shervine changed the title Tech Foundation Pivot to a Triple Object Design: Intent, Entities & Ledger Pivot to a Triple Object Design: Intent, Entities & Ledger Jan 4, 2019
@shervine shervine changed the title Pivot to a Triple Object Design: Intent, Entities & Ledger Pivot to Triple Objects: Intent, Entities & Ledger Jan 4, 2019
@shervine
Copy link
Member Author

@grumo Will demo you v0.70 tomorrow morning, so excited!

@shervine
Copy link
Member Author

@grumo After more than 4 months of continious work I am super happy to say that the migration from our old platform to triple is now complete! The next key issue before our MVP launch would be to complete Conversational Engine V1.1 #2035

@shervine shervine changed the title Pivot to Triple Objects: Intent, Entities & Ledger Pivot Database to Intent, Entities & Links Apr 30, 2019
@shervine shervine added the Pivot label Jun 11, 2019
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

1 participant