chaoss / grimoirelab-bestiary

GNU General Public License v3.0
3 stars 9 forks source link

[server] Add support for managing data sources and data sets #82

Closed jjmerchante closed 2 years ago

jjmerchante commented 2 years ago

This commit includes DataSource, DataSet and DataSourceType models and the initial migrations file as described in https://github.com/chaoss/grimoirelab-bestiary/issues/39

Every DataSet object must have a related project, a related data source, a category and can include some filters.

Every DataSource object must have a DataSourceType associated and an uri for the backend.

DataSourceType database must be filled with data with the supported data sources.

This commit also includes some methods at database level to:

This PR includes tests for each data base method

jjmerchante commented 2 years ago

I think we should use datasource instead of data source and the same with dataset. I know they aren't valid English words but in this case we are talking more about the objects we are storing. Not sure if this makes sense to you.

I had this discussion some time ago with Jesus and Manrique in a different context and we decided to go for data_source. Anyway it is something internal to the code and I don't see any problem going your way.

In commentaries I keep data source and data set, and I also keep class names as DataSource and DataSet. I rename only the attributes of the classes and any word written as data_source to datasource (and the same for data set)

sduenas commented 2 years ago

I think we should use datasource instead of data source and the same with dataset. I know they aren't valid English words but in this case we are talking more about the objects we are storing. Not sure if this makes sense to you.

I had this discussion some time ago with Jesus and Manrique in a different context and we decided to go for data_source. Anyway it is something internal to the code and I don't see any problem going your way.

In commentaries I keep data source and data set, and I also keep class names as DataSource and DataSet. I rename only the attributes of the classes and any word written as data_source to datasource (and the same for data set)

Yes, in the comments is maybe better to reference as data source and data set but in methods, parameters, etc better to have datasource and dataset because we consider it as a whole.

jjmerchante commented 2 years ago

Changes in the last push: