Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of "<edits> 🖊" in changeset card (Issue #5758)

mmd notifications at github.com
Mon Apr 7 19:37:14 UTC 2025


mmd-osm left a comment (openstreetmap/openstreetmap-website#5758)

I think i'm mostly done with the cgimap part, including unit tests. For the time being, I have enhanced structure.sql with the following statement:

```
ALTER TABLE public.changesets
   ADD COLUMN num_created_nodes integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_modified_nodes integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_deleted_nodes integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_created_ways integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_modified_ways integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_deleted_ways integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_created_relations integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_modified_relations integer DEFAULT 0 NOT NULL,
   ADD COLUMN num_deleted_relations integer DEFAULT 0 NOT NULL;
```

My expectation is that the Rails migration would end up creating something similar (column name-wise).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5758#issuecomment-2784440620
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5758/2784440620 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250407/5c906979/attachment.htm>


More information about the rails-dev mailing list