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

Issue 402: add new community when adding new user - backend #47

Merged
merged 4 commits into from
Nov 25, 2018

Conversation

Niicck
Copy link
Collaborator

@Niicck Niicck commented Nov 19, 2018

Related to: cityofaustin/ctxfloods#402
Frontend: cityofaustin/ctxfloods#403

When adding a new user, give superadmin the option to create a new community.

Also refactors nodemailer to use OAuth2. Will be helpful to eliminate errors with sending emails from AWS servers. (See: cityofaustin/ctxfloods#401)

alter table floods.community alter column abbreviation drop not null;
alter function floods.new_community(text, text) called on null input;

alter sequence floods.community_id_seq restart with 9019;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@briaguya Do we need to do any futureproofing around new legacy communities? Otherwise it made sense to me to start new community ids where the legacy ones left off.

new_community_id integer;
floods_crossing floods.crossing;
begin
select id into new_community_id from floods.new_community(community_name, null);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@briaguya It seemd like "Abbreviations" for crossings were really only relevant for legacy crossings. Going forward we don't need them for our own new communities, right?

@Niicck Niicck merged commit df48246 into dev Nov 25, 2018
@Niicck Niicck deleted the 402-community branch November 26, 2018 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant