Compare commits

...

19 Commits
4 ... 5.0.3

Author SHA1 Message Date
github-actions 6d1d9774e3 Merge branch '4' into 5.0 2023-09-29 11:04:26 +00:00
Guy Sartorelli ca9a472b14
Merge pull request #168 from creative-commoners/pulls/5.0/module-standardiser-1693278942
MNT Run module-standardiser
2023-08-29 17:12:25 +12:00
Steve Boyd 504dfcd919 MNT Run module-standardiser 2023-08-29 15:15:42 +12:00
github-actions ede73e8ef0 Merge branch '4' into 5.0 2023-08-25 11:04:29 +00:00
Steve Boyd 454a9fd10b Merge branch '4' into 5.0 2023-06-16 10:40:19 +12:00
Guy Sartorelli 84f507cb9c
Merge branch '4' into 5.0 2023-04-27 14:55:05 +12:00
Sabina Talipova 6aa3f02820
Merge pull request #162 from creative-commoners/pulls/5.0/cms5-readme
DOC Update README.md for CMS 5
2023-04-24 13:33:22 +12:00
Guy Sartorelli 53a2bcc998
DOC Update README.md for CMS 5 2023-04-19 17:56:52 +12:00
Steve Boyd 28c43ca5a3 Merge branch '4' into 5.0 2023-03-30 13:05:31 +13:00
Steve Boyd f7a54597e9 Merge branch '4' into 5.0 2023-03-08 12:54:12 +13:00
Maxime Rainville 3628238be0
Merge pull request #158 from creative-commoners/pulls/5/remove-legacy-upgrader
MNT Remove legacy upgrader config
2023-01-23 10:26:21 +13:00
Steve Boyd 72f030fee6 MNT Remove legacy upgrader config 2023-01-20 16:55:24 +13:00
Guy Sartorelli 17ed7323fd
Merge pull request #157 from creative-commoners/pulls/5/no-trailing-slash
MNT Don't expect trailing slash in tests
2023-01-20 15:29:43 +13:00
Guy Sartorelli 12c712b895
MNT Don't expect trailing slash in tests 2023-01-13 13:08:13 +13:00
Guy Sartorelli a0fc77b030
Merge pull request #155 from creative-commoners/pulls/5/upgrade-installer-deps
DEP Upgrade installer dependencies
2022-10-28 10:03:21 +13:00
Sabina Talipova 23786e5daf DEP Upgrade installer dependencies 2022-10-26 14:03:22 +13:00
Guy Sartorelli da1a1489af
Merge branch '4' into 5 2022-08-31 14:07:09 +12:00
Guy Sartorelli 050c683f8b
Merge pull request #151 from creative-commoners/pulls/5/major-deps
DEP Update core dependencies for CMS 5
2022-08-09 09:48:40 +12:00
Steve Boyd 65bc353f43 DEP Update core dependencies for CMS 5 2022-08-04 17:43:22 +12:00
8 changed files with 40 additions and 32 deletions

View File

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

17
.github/workflows/merge-up.yml vendored Normal file
View File

@ -0,0 +1,17 @@
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

View File

@ -1,9 +0,0 @@
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,15 +3,16 @@
[![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. This module replaces the built-in reports API from earlier
versions of Silverstripe (2.4 and 3.0).
## Requirements
* Silverstripe 4.0
Silverstripe backend.
## Troubleshooting

View File

@ -102,7 +102,6 @@ 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": "^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"
"php": "^8.1",
"silverstripe/framework": "^5",
"silverstripe/admin": "^2",
"silverstripe/versioned": "^2",
"silverstripe/config": "^2",
"silverstripe/assets": "^2",
"silverstripe/vendor-plugin": "^2"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7"
},
"extra": {
"expose": [
@ -45,4 +45,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

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']);