-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update profile privacy settings to support private, public, and…
… friends-only options
- Loading branch information
1 parent
b0e5abc
commit 289427c
Showing
12 changed files
with
127 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum EcoPlacePrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum LocationPrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum ToDoListPrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../resources/db/changelog/logs/ch-add-default-value-userprofile-confidentiality-Haliara.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
<changeSet id="set-default-values-for-show-location" author="Vladyslav Haliara"> | ||
<addDefaultValue tableName="users" columnName="show_location" defaultValue="PUBLIC"/> | ||
</changeSet> | ||
|
||
<changeSet id="set-default-values-for-show-eco-place" author="Vladyslav Haliara"> | ||
<addDefaultValue tableName="users" columnName="show_eco_place" defaultValue="PUBLIC"/> | ||
</changeSet> | ||
|
||
<changeSet id="set-default-values-for-show-to-do-list" author="Vladyslav Haliara"> | ||
<addDefaultValue tableName="users" columnName="show_to_do_list" defaultValue="PUBLIC"/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
43 changes: 43 additions & 0 deletions
43
dao/src/main/resources/db/changelog/logs/ch-change-user-profile-columns-type-Haliara.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
<changeSet id="change-column-type-show-location" author="Vladyslav Haliara"> | ||
<modifyDataType tableName="users" columnName="show_location" newDataType="VARCHAR(255)"/> | ||
<update tableName="users"> | ||
<column name="show_location" value="PUBLIC"/> | ||
<where>show_location = 'true'</where> | ||
</update> | ||
<update tableName="users"> | ||
<column name="show_location" value="PRIVATE"/> | ||
<where>show_location = 'false'</where> | ||
</update> | ||
</changeSet> | ||
|
||
<changeSet id="change-column-type-show-eco-place" author="Vladyslav Haliara"> | ||
<modifyDataType tableName="users" columnName="show_eco_place" newDataType="VARCHAR(255)"/> | ||
<update tableName="users"> | ||
<column name="show_eco_place" value="PUBLIC"/> | ||
<where>show_eco_place = 'true'</where> | ||
</update> | ||
<update tableName="users"> | ||
<column name="show_eco_place" value="PRIVATE"/> | ||
<where>show_eco_place = 'false'</where> | ||
</update> | ||
</changeSet> | ||
|
||
<changeSet id="change-column-type-show-to-do-list" author="Vladyslav Haliara"> | ||
<modifyDataType tableName="users" columnName="show_to_do_list" newDataType="VARCHAR(255)"/> | ||
<update tableName="users"> | ||
<column name="show_to_do_list" value="PUBLIC"/> | ||
<where>show_to_do_list = 'true'</where> | ||
</update> | ||
<update tableName="users"> | ||
<column name="show_to_do_list" value="PRIVATE"/> | ||
<where>show_to_do_list = 'false'</where> | ||
</update> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
service-api/src/main/java/greencity/enums/EcoPlacePrivacyPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum EcoPlacePrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
7 changes: 7 additions & 0 deletions
7
service-api/src/main/java/greencity/enums/LocationPrivacyPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum LocationPrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
7 changes: 7 additions & 0 deletions
7
service-api/src/main/java/greencity/enums/ToDoListPrivacyPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package greencity.enums; | ||
|
||
public enum ToDoListPrivacyPolicy { | ||
PRIVATE, | ||
FRIENDS_ONLY, | ||
PUBLIC | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters