Skip to content

Commit

Permalink
refactor(scaffolding): Migrate app template to Github template repo (#…
Browse files Browse the repository at this point in the history
…1368)

* refactor(scaffolding): Migrate app template to Github template repo

Signed-off-by: provokateurin <kate@provokateurin.de>

---------

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
provokateurin and pre-commit-ci[bot] committed Apr 30, 2024
1 parent 651d10b commit 37b7aea
Show file tree
Hide file tree
Showing 63 changed files with 93 additions and 2,684 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: sudo apt install gettext netcat-openbsd xvfb redis-server

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "nextcloudappstore/scaffolding/app_template"]
path = nextcloudappstore/scaffolding/app_template
url = https://github.com/nextcloud/app_template.git
11 changes: 1 addition & 10 deletions nextcloudappstore/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,7 @@ def __str__(self) -> str:


class NextcloudReleaseManager(Manager):
def get_current(self):
return self.get_queryset().filter(is_current=True)[:1]
pass


class NextcloudRelease(Model):
Expand Down Expand Up @@ -736,13 +735,5 @@ class Meta:
verbose_name_plural = _("Nextcloud releases")
ordering = ("-version",)

@staticmethod
def get_current_main():
current = NextcloudRelease.objects.get_current()
if len(current) > 0:
return current[0].version.split(".")[0]
else:
return None

def __str__(self):
return self.version
2 changes: 1 addition & 1 deletion nextcloudappstore/core/tests/e2e/test_scaffolding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test_scaffold(self):
self.by_id("id_description").send_keys("This app does nothing")

valid_elems = self.by_css("#app-generate-form *:valid", True)
self.assertEqual(11, len(valid_elems))
self.assertEqual(10, len(valid_elems))
self.by_id("submit").click()

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 37b7aea

Please sign in to comment.