Skip to content
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

User editing interface updates + logo uploading #246

Merged
merged 2 commits into from Dec 19, 2016
Merged

User editing interface updates + logo uploading #246

merged 2 commits into from Dec 19, 2016

Conversation

gentlecat
Copy link
Contributor

No description provided.

Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good overall, but not quite ready yet.

@@ -20,6 +20,7 @@ CREATE TABLE "user" (
contact_email CHARACTER VARYING NOT NULL,
data_usage_desc TEXT,
org_name CHARACTER VARYING,
logo_filename CHARACTER VARYING,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? Can the filename not be parsed from the org_logo_url?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. You've depricated the old logo URL, but still kept it. I think this complicated the code unnecessarily and we should get rid of the old org_logo_url and write a script that moves the legacy supporters into the new format. Then drop the old column.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filename is generated randomly so we need to know the name.

Another thing is that people who register still have a way to provide a URL for a logo. Do you use it often or just ask them to send one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More often than not, I have to ask them for one. Very few provide a usable logo file -- I would suggest that we can leave that out for people to add themselves and I'll ask for it when we starting billing them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we can remove it afterwards. I think it would be faster to just move all the logos by hand than to write a script. There aren't as many, I'll do it myself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, looks good to merge then.

@@ -0,0 +1,240 @@
{% extends 'admin/master.html' %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there no old template that did most of this before? Looks like a new file, but we had this feature before and I don't see any files being deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old editing interface is not our custom thing, it's generated from the ORM by Flask-Admin.

@gentlecat gentlecat merged commit ba1fad0 into metabrainz:master Dec 19, 2016
@gentlecat gentlecat deleted the better-admin branch December 20, 2016 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants