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

Core App and Data model #3

Open
infohata opened this issue Feb 17, 2019 · 1 comment
Open

Core App and Data model #3

infohata opened this issue Feb 17, 2019 · 1 comment
Assignees
Labels
core feature Anything related to the core functionality of the HC
Milestone

Comments

@infohata
Copy link
Contributor

We have an old data model consisting of 7 tables, which we can relate to the following object groups:

Geographical Objects

  • countries
  • regions
  • cities

Connecting People

  • members
  • relations
  • comments
  • messages

That is all it is and that is more than fine for the old system. It was functioning fast due to little joins and so on. However, the naming convention of the fields is not existing, and indexes could be improved. In python, we have a convention to write data structures and code which would be humanly readable independently from which part of the code you start to read it.

I will suggest the new data structure and implement it into hc-core Django app. It will be, in fact, the main app of the project and will be most likely the dependency to everything. However, I suggest not to make an elephant out of it and implement every function to it's own app.

We'll see how it goes. It's a start

@infohata infohata added the core feature Anything related to the core functionality of the HC label Feb 17, 2019
@infohata infohata added this to the Backend Alpha milestone Feb 17, 2019
@infohata infohata self-assigned this Feb 17, 2019
@infohata
Copy link
Contributor Author

Implemented into hc-3-core-app-data-model with these changes:

  • comments and messages merged into the same data model. This allows to track changes in people relationships, including counting the repeated visits, etc.;
  • multiple addresses now are possible with their own properties for hosting options
  • contact methods are now abstract
  • few other minor abstractions
  • fields now are humanly readable in the data model, with proper explanations and UI labels already implemented for most of the cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core feature Anything related to the core functionality of the HC
Projects
None yet
Development

No branches or pull requests

1 participant