Compare commits

..

3 Commits
5.0.3 ... 4

Author SHA1 Message Date
github-actions 6942278b41 Merge branch '4.13' into 4 2024-02-09 11:04:20 +00:00
Guy Sartorelli c9c6c3ff1e
TLN Update translations (#176) 2024-02-08 13:29:26 +13:00
Guy Sartorelli f5b5daa711
TLN Update translations (#175) 2024-02-07 16:10:59 +13:00
10 changed files with 39 additions and 43 deletions

View File

@ -1,10 +1,10 @@
name: Keepalive
on:
# At 6:30 PM UTC, on day 7 of the month
schedule:
- cron: '30 18 7 * *'
workflow_dispatch:
# The 4th of every month at 10:50am UTC
schedule:
- cron: '50 10 4 * *'
jobs:
keepalive:

View File

@ -1,17 +0,0 @@
name: Merge-up
on:
# At 11:00 AM UTC, only on Friday
schedule:
- cron: '0 11 * * 5'
workflow_dispatch:
jobs:
merge-up:
name: Merge-up
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1

9
.upgrade.yml Normal file
View File

@ -0,0 +1,9 @@
mappings:
SS_Report: SilverStripe\Reports\Report
SilverStripe\Reports\SS_Report: SilverStripe\Reports\Report
SS_ReportWrapper: SilverStripe\Reports\ReportWrapper
SilverStripe\Reports\SS_ReportWrapper: SilverStripe\Reports\ReportWrapper
ReportAdmin: SilverStripe\Reports\ReportAdmin
SideReportView: SilverStripe\Reports\SideReportView
SideReportWrapper: SilverStripe\Reports\SideReportWrapper
SideReport: SilverStripe\Reports\SideReportView

View File

@ -1,4 +1,4 @@
Copyright (c) 2017, Silverstripe Limited
Copyright (c) 2017, SilverStripe Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

View File

@ -3,16 +3,15 @@
[![CI](https://github.com/silverstripe/silverstripe-reports/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-reports/actions/workflows/ci.yml)
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
## Installation
```sh
composer require silverstripe/reports
```
## Introduction
This module contains the API's for building Reports that are displayed in the
Silverstripe backend.
Silverstripe backend. This module replaces the built-in reports API from earlier
versions of Silverstripe (2.4 and 3.0).
## Requirements
* Silverstripe 4.0
## Troubleshooting

View File

@ -102,6 +102,7 @@ abstract class ReportWrapper extends Report
public function group()
{
/** @skipUpgrade */
return $this->baseReport->hasMethod('group') ? $this->baseReport->group() : 'Group';
}

View File

@ -20,17 +20,17 @@
}
],
"require": {
"php": "^8.1",
"silverstripe/framework": "^5",
"silverstripe/admin": "^2",
"silverstripe/versioned": "^2",
"silverstripe/config": "^2",
"silverstripe/assets": "^2",
"silverstripe/vendor-plugin": "^2"
"php": "^7.4 || ^8.0",
"silverstripe/framework": "^4.11",
"silverstripe/admin": "^1.6@dev",
"silverstripe/versioned": "^1.6@dev",
"silverstripe/config": "^1.0@dev",
"silverstripe/assets": "^1.6@dev",
"silverstripe/vendor-plugin": "^1"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7"
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
},
"extra": {
"expose": [
@ -45,4 +45,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

View File

@ -1,7 +1,9 @@
sk:
SilverStripe\CMS\Controllers\CMSPageHistoryController:
PREVIEW: 'Náhľad webovej stránky'
SilverStripe\Reports\ReportAdmin:
MENUTITLE: Výkazy
ReportTitle: Titulok
MENUTITLE: Správy
ReportTitle: Názov
SilverStripe\Reports\SideReport:
OtherGroupTitle: Iné
REPEMPTY: 'Výkaz {title} je prázdny.'
REPEMPTY: 'Správa {title} je prázdna.'

View File

@ -1,4 +1,6 @@
sv:
SilverStripe\CMS\Controllers\CMSPageHistoryController:
PREVIEW: 'Webbplats förhandsvisning'
SilverStripe\Reports\ReportAdmin:
MENUTITLE: Rapporter
ReportTitle: Titel

View File

@ -23,7 +23,7 @@ class ReportAdminTest extends SapphireTest
$this->assertCount(2, $breadcrumbs);
$map = $breadcrumbs[0]->toMap();
$this->assertSame('Reports', $map['Title']);
$this->assertSame('admin/reports', $map['Link']);
$this->assertSame('admin/reports/', $map['Link']);
$map = $breadcrumbs[1]->toMap();
$this->assertSame('Fake report', $map['Title']);
@ -36,7 +36,7 @@ class ReportAdminTest extends SapphireTest
$map = $breadcrumbs[0]->toMap();
$this->assertSame('Reports', $map['Title']);
$this->assertSame('admin/reports', $map['Link']);
$this->assertSame('admin/reports/', $map['Link']);
$map = $breadcrumbs[1]->toMap();
$this->assertSame('Fake report title', $map['Title']);