-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Custom Editor #1924
Custom Editor #1924
Conversation
f12e88a
to
2426a61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked and reviewed. Works fine and source code it good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got this error, doing the following steps.
- Add a custom editor
- Enabled it
- Remove custom editor
- Add custom editor again.
CRITICAL in project_admin_api: Project GET - unhandled error: (psycopg2.IntegrityError) null value in column "enabled" violates not-null constraint
DETAIL: Failing row contains (4, test, test desc, http://testeditor.com, null).
[SQL: UPDATE project_custom_editors SET name=%(name)s, description=%(description)s, url=%(url)s, enabled=%(enabled)s WHERE project_custom_editors.project_id = %(project_custom_editors_project_id)s]
[parameters: {'name': 'test', 'description': 'test desc', 'url': 'http://testeditor.com', 'enabled': None, 'project_custom_editors_project_id': 4}]
(Background on this error at: http://sqlalche.me/e/gkpj)
The field seems to not being sent
@fitoria figured it out. Long story short, since I was using an uninitialized I decided to fix this on the backend by:
|
6f48187
to
364bc2f
Compare
364bc2f
to
52adedc
Compare
Rerolled after a conflict with newest |
With this PR, a PM with expert mode enabled can add a custom editor to a project.
Demos
Project edit
Mapping
Note: This will currently only work with iD-ish urls or JOSM urls that don't require parameters.
cc @xamanu @russdeffner
closes #1916