-
Notifications
You must be signed in to change notification settings - Fork 919
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
Adds note tags support #5344
base: master
Are you sure you want to change the base?
Adds note tags support #5344
Commits on Nov 26, 2024
-
Added NoteTag model and note_tags table
Added NoteTag model class, note_tags DB table, associations between Note and NoteTag and private / foreign keys.
Configuration menu - View commit details
-
Copy full SHA for 09bda4e - Browse repository at this point
Copy the full SHA 09bda4eView commit details -
Added displaying tags on Notes sidebar
Added Note#tags routine for preparing note tags for rendering using "browse/tag_details" partial. Also, added displaying of previously prepared note tags between note's "Description" and comments in app/views/notes/show.html.erb.
Configuration menu - View commit details
-
Copy full SHA for e15dfc4 - Browse repository at this point
Copy the full SHA e15dfc4View commit details -
Updated (j)builder files with note tags
Added writing note tags in (j)builder files for generating XML, JSON, GPX, RSS and feed files.
Configuration menu - View commit details
-
Copy full SHA for a98e64e - Browse repository at this point
Copy the full SHA a98e64eView commit details -
Added support for tags in note creation API
Improved API::NotesController#create to support tags (if passed). Also, added adding of "created_by:OpenStreetMap-Website" tag to note when created from OSM website.
Configuration menu - View commit details
-
Copy full SHA for 67d150d - Browse repository at this point
Copy the full SHA 67d150dView commit details -
Added note_tag factory and NoteTag model test-case
Added registering new factory bot for note_tag and added new unit tests to NoteTagTest for checking if key length is valid, value length is valid, key length is invalid, value length is invalid, orphaned tag is invalid and note_tags are unique.
Configuration menu - View commit details
-
Copy full SHA for feb68f7 - Browse repository at this point
Copy the full SHA feb68f7View commit details -
Added unit test for notes with tags
Added NotesControllerTest#test_displaying_note_with_tags unit test for testing cases when note has tags and comment (description). Internally, new note is created with comment (description) and several tags and then rendered in sidebar. Existence of appropriate HTML tags for notes, comment (description) and tags is checked.
Configuration menu - View commit details
-
Copy full SHA for 0efc5ed - Browse repository at this point
Copy the full SHA 0efc5edView commit details -
Test note/tag output created at ActiveRecord level
Added testing of note XML, JSON, GPX, RSS and feed outputs (with tags) when note (and tags) are created on FactoryBot / ActiveRecord level.
Configuration menu - View commit details
-
Copy full SHA for 16f0d6c - Browse repository at this point
Copy the full SHA 16f0d6cView commit details -
Test note/tag output created at POST/HTML level
Added testing of note XML, JSON, GPX, RSS and feed outputs (with tags) when note (and tags) are created by sending POST/HTTP request.
Configuration menu - View commit details
-
Copy full SHA for 22c4ef9 - Browse repository at this point
Copy the full SHA 22c4ef9View commit details