ecosyste-ms / repos

An open API service providing repository metadata for many open source software ecosystems.
https://repos.ecosyste.ms
GNU Affero General Public License v3.0
9 stars 1 forks source link

created_at / updated_at overwrite #646

Closed simkim closed 1 month ago

simkim commented 2 months ago

Hi @andrew

We have a bug where after a sync_repository, updated_at is set at the last activity.

But an update of the object trigger rails to set updated_at at the current time.

We have two possibilities :

I'm willing to implement whatever you prefer.

What do you think ?

andrew commented 2 months ago

I prefer the first option, as that doesn't change the existing api schema, and in the past I've tried to avoid getting the automatic rails timestamp updates on records synced from github (because they share the same field names)

simkim commented 2 months ago

Yes github and gitlab are coded in rails :)

I will do the first option.

Thanks

andrew commented 2 months ago

https://github.com/ecosyste-ms/repos/pull/648