Skip to content

Commit

Permalink
Update Baby Buddy to v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Feb 19, 2020
1 parent f47f42b commit 3f47d65
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
7 changes: 4 additions & 3 deletions .sandstorm/sandstorm-pkgdef.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const pkgdef :Spk.PackageDefinition = (

manifest = (
appTitle = (defaultText = "Baby Buddy"),
appVersion = 1, # Increment this for every release.
appMarketingVersion = (defaultText = "1.3.4"),
appVersion = 2, # Increment this for every release.
appMarketingVersion = (defaultText = "1.4.0"),
actions = [
( nounPhrase = (defaultText = "instance"),
command = .firstRunCommand
Expand Down Expand Up @@ -52,7 +52,8 @@ const pkgdef :Spk.PackageDefinition = (
),
fileList = "sandstorm-files.list",
alwaysInclude = [ "opt/app/babybuddy", "usr/lib/python3",
"usr/lib/python3.7" ],
"usr/lib/python3.7", "usr/share/zoneinfo",
"usr/share/locale" ],
bridgeConfig = (
viewInfo = (
permissions = [
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@
This is the source for the [Baby Buddy](https://github.com/babybuddy/babybuddy)
app for [Sandstorm](https://sandstorm.io/).

## App Version History

- v2: [Baby Buddy 1.4.0](https://github.com/babybuddy/babybuddy/releases/tag/v1.4.0)
- v1: [Baby Buddy 1.3.4](https://github.com/babybuddy/babybuddy/releases/tag/v1.3.4)
- v0: [Baby Buddy 1.3.0](https://github.com/babybuddy/babybuddy/releases/tag/v1.3.0)

## Caveats

- Baby Buddy currently only supports setting the application time zone from an
environment variable. This cannot be achieved with the regular Sandstorm grain
workflow, so the timezone is locked to Etc/UTC.
- ~~Baby Buddy currently only supports setting the application time zone from
an environment variable. This cannot be achieved with the regular Sandstorm
grain workflow, so the timezone is locked to Etc/UTC.~~ (Resolved as of v2)

- Sandstorm user ID's are used for the username in Baby Buddy. This name is
used for display throughout the app and is not terribly useful.
- ~~Sandstorm user ID's are used for the username in Baby Buddy. This name is
used for display throughout the app and is not terribly useful.~~ (Resolved as
of v2)

- Baby Buddy's API has not been fully implemented with Sandbox's API
integration.
Expand Down
26 changes: 13 additions & 13 deletions sandstorm.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/Pipfile b/Pipfile
index 0bf2d3f..d7381f8 100644
index 62a51bb..4a20390 100644
--- a/Pipfile
+++ b/Pipfile
@@ -21,6 +21,7 @@ easy-thumbnails = "*"
python-dotenv = "*"
@@ -19,6 +19,7 @@ python-dotenv = "*"
django-storages = "*"
boto3 = "*"
django-import-export = "*"
+django-sandstorm = {editable = true,git = "https://github.com/cdubz/django-sandstorm.git"}


[dev-packages]
coveralls = "*"
diff --git a/babybuddy/forms.py b/babybuddy/forms.py
index 004d738..e75f635 100644
index 4f0a7fb..c386b61 100644
--- a/babybuddy/forms.py
+++ b/babybuddy/forms.py
@@ -6,20 +6,6 @@ from django.contrib.auth.models import User
Expand Down Expand Up @@ -107,10 +107,10 @@ index 0000000..7aa8682
+
+MEDIA_ROOT = '/var/media'
diff --git a/babybuddy/templates/babybuddy/nav-dropdown.html b/babybuddy/templates/babybuddy/nav-dropdown.html
index 6d75c7c..812c429 100644
index 14f02aa..034fd30 100644
--- a/babybuddy/templates/babybuddy/nav-dropdown.html
+++ b/babybuddy/templates/babybuddy/nav-dropdown.html
@@ -237,14 +237,11 @@
@@ -239,14 +239,11 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="nav-user-menu-link">
<h6 class="dropdown-header">{% trans "User" %}</h6>
<a href="{% url 'babybuddy:user-settings' %}" class="dropdown-item">{% trans "Settings" %}</a>
Expand All @@ -122,9 +122,9 @@ index 6d75c7c..812c429 100644
target="_blank">{% trans "API Browser" %}</a>
{% if request.user.is_staff %}
- <a href="{% url 'babybuddy:user-list' %}" class="dropdown-item">{% trans "Users" %}</a>
<a href="{% url 'admin:index' %}"
class="dropdown-item"
target="_blank">{% trans "Backend Admin" %}</a>
<a href="{% url 'admin:index' %}" class="dropdown-item">{% trans "Database Admin" %}</a>
{% endif %}
<h6 class="dropdown-header">{% trans "Support" %}</h6>
diff --git a/babybuddy/urls.py b/babybuddy/urls.py
index a18f2a1..8fad3ae 100644
--- a/babybuddy/urls.py
Expand Down Expand Up @@ -165,10 +165,10 @@ index a18f2a1..8fad3ae 100644
'user/reset-api-key/',
views.UserResetAPIKey.as_view(),
diff --git a/babybuddy/views.py b/babybuddy/views.py
index 66209cc..6b0dfe4 100644
index 75f36b9..31eaab9 100644
--- a/babybuddy/views.py
+++ b/babybuddy/views.py
@@ -46,16 +46,6 @@ class UserList(StaffOnlyMixin, BabyBuddyFilterView):
@@ -47,16 +47,6 @@ class UserList(StaffOnlyMixin, BabyBuddyFilterView):
filterset_fields = ('username', 'first_name', 'last_name', 'email')


Expand All @@ -185,7 +185,7 @@ index 66209cc..6b0dfe4 100644
class UserUpdate(StaffOnlyMixin, PermissionRequired403Mixin,
SuccessMessageMixin, UpdateView):
model = User
@@ -66,42 +56,6 @@ class UserUpdate(StaffOnlyMixin, PermissionRequired403Mixin,
@@ -67,42 +57,6 @@ class UserUpdate(StaffOnlyMixin, PermissionRequired403Mixin,
success_message = gettext_lazy('User %(username)s updated.')


Expand Down

0 comments on commit 3f47d65

Please sign in to comment.