Browse Source

Merge pull request #206 from provokateurin/fix/update-news

Update news to fix test failures
pull/207/head
Kate 2 years ago committed by GitHub
parent
commit
9861480b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      external/nextcloud-news
  2. 4
      packages/neon/lib/src/apps/news/widgets/feed_icon.dart
  3. 4
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  4. 2
      packages/nextcloud/lib/src/nextcloud.openapi.g.dart
  5. 1
      packages/nextcloud/lib/src/nextcloud.openapi.json
  6. 3
      specs/news.json
  7. 2
      specs/templates/news.json
  8. 4
      tool/Dockerfile.dev
  9. 8
      tool/update.sh

2
external/nextcloud-news vendored

@ -1 +1 @@
Subproject commit c60d9b1f15d566e48a148adcb3fd1e4493a1c1c0 Subproject commit adc143e2a561289665d16089770b2a8cecbb1099

4
packages/neon/lib/src/apps/news/widgets/feed_icon.dart

@ -18,9 +18,9 @@ class NewsFeedIcon extends StatelessWidget {
width: size, width: size,
height: size, height: size,
borderRadius: borderRadius, borderRadius: borderRadius,
child: feed.faviconLink != '' child: feed.faviconLink != null
? CachedURLImage( ? CachedURLImage(
url: feed.faviconLink, url: feed.faviconLink!,
height: size, height: size,
width: size, width: size,
iconColor: Theme.of(context).colorScheme.primary, iconColor: Theme.of(context).colorScheme.primary,

4
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -3604,7 +3604,7 @@ class NextcloudNewsFeed {
required this.id, required this.id,
required this.url, required this.url,
required this.title, required this.title,
required this.faviconLink, this.faviconLink,
required this.added, required this.added,
this.folderId, this.folderId,
this.unreadCount, this.unreadCount,
@ -3631,7 +3631,7 @@ class NextcloudNewsFeed {
final String title; final String title;
final String faviconLink; final String? faviconLink;
final int added; final int added;

2
packages/nextcloud/lib/src/nextcloud.openapi.g.dart

@ -1336,7 +1336,7 @@ NextcloudNewsFeed _$NextcloudNewsFeedFromJson(Map<String, dynamic> json) {
id: json['id'] as int, id: json['id'] as int,
url: json['url'] as String, url: json['url'] as String,
title: json['title'] as String, title: json['title'] as String,
faviconLink: json['faviconLink'] as String, faviconLink: json['faviconLink'] as String?,
added: json['added'] as int, added: json['added'] as int,
folderId: json['folderId'] as int?, folderId: json['folderId'] as int?,
unreadCount: json['unreadCount'] as int?, unreadCount: json['unreadCount'] as int?,

1
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -987,7 +987,6 @@
"id", "id",
"url", "url",
"title", "title",
"faviconLink",
"added", "added",
"ordering", "ordering",
"pinned", "pinned",

3
specs/news.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "News", "title": "News",
"version": "20.0.0", "version": "21.0.0",
"description": "An RSS/Atom feed reader", "description": "An RSS/Atom feed reader",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -103,7 +103,6 @@
"id", "id",
"url", "url",
"title", "title",
"faviconLink",
"added", "added",
"ordering", "ordering",
"pinned", "pinned",

2
specs/templates/news.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "News", "title": "News",
"version": "20.0.0", "version": "21.0.0",
"description": "An RSS/Atom feed reader", "description": "An RSS/Atom feed reader",
"license": { "license": {
"name": "agpl", "name": "agpl",

4
tool/Dockerfile.dev

@ -11,8 +11,8 @@ RUN ./occ app:disable password_policy
RUN OC_PASS="user1" ./occ user:add --password-from-env --display-name "User One" user1 RUN OC_PASS="user1" ./occ user:add --password-from-env --display-name "User One" user1
RUN OC_PASS="user2" ./occ user:add --password-from-env --display-name "User Two" user2 RUN OC_PASS="user2" ./occ user:add --password-from-env --display-name "User Two" user2
RUN ./occ app:install news RUN ./occ app:install news # 21.0.0
RUN ./occ app:install notes RUN ./occ app:install notes # 4.6.0
RUN ./occ app:enable password_policy RUN ./occ app:enable password_policy
# TODO: This stopped working randomly with apache not being able to bind to the port during build. Must be some docker changes? # TODO: This stopped working randomly with apache not being able to bind to the port during build. Must be some docker changes?

8
tool/update.sh

@ -24,10 +24,12 @@ elif [ -d "external/nextcloud-$1" ]; then
git reset --hard "$latest_tag" git reset --hard "$latest_tag"
git submodule update git submodule update
if [[ "$1" == "server" ]]; then
# shellcheck disable=SC2001 # shellcheck disable=SC2001
image_version=$(echo "$latest_tag" | sed "s/^v//") latest_version=$(echo "$latest_tag" | sed "s/^v//")
sed -i "s/FROM nextcloud:.*/FROM nextcloud:$image_version/" ../../tool/Dockerfile.dev if [[ "$1" == "server" ]]; then
sed -i "s/FROM nextcloud:.*/FROM nextcloud:$latest_version/" ../../tool/Dockerfile.dev
else
sed -i "s/RUN \.\/occ app:install $1 .*/RUN .\/occ app:install $1 # $latest_version/" ../../tool/Dockerfile.dev
fi fi
) )
else else

Loading…
Cancel
Save