Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sonata-project/SonataNewsBundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.14.0
Choose a base ref
...
head repository: sonata-project/SonataNewsBundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.x
Choose a head ref

Commits on Aug 26, 2020

  1. DevKit updates (#621)

    SonataCI authored Aug 26, 2020
    Copy the full SHA
    0ac1e09 View commit details

Commits on Aug 27, 2020

  1. DevKit updates (#622)

    SonataCI authored Aug 27, 2020
    Copy the full SHA
    f670ad3 View commit details
  2. DevKit updates (#623)

    SonataCI authored Aug 27, 2020
    Copy the full SHA
    e56f057 View commit details

Commits on Aug 28, 2020

  1. DevKit updates (#624)

    SonataCI authored Aug 28, 2020
    Copy the full SHA
    c2d0a14 View commit details
  2. DevKit updates (#625)

    SonataCI authored Aug 28, 2020
    Copy the full SHA
    4fc7932 View commit details

Commits on Aug 29, 2020

  1. DevKit updates (#626)

    SonataCI authored Aug 29, 2020
    Copy the full SHA
    149106e View commit details

Commits on Aug 31, 2020

  1. DevKit updates (#627)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    4bde0e1 View commit details
  2. DevKit updates (#628)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    c71540a View commit details
  3. DevKit updates (#629)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    b9b4564 View commit details
  4. DevKit updates (#630)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    7433334 View commit details
  5. DevKit updates (#631)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    ee4e9f8 View commit details
  6. DevKit updates (#632)

    SonataCI authored Aug 31, 2020
    Copy the full SHA
    d361185 View commit details
  7. Fix: DOCtor-RST build

    OskarStark committed Aug 31, 2020
    Copy the full SHA
    058c6fd View commit details

Commits on Sep 1, 2020

  1. Copy the full SHA
    3822ff4 View commit details

Commits on Sep 4, 2020

  1. DevKit updates (#636)

    SonataCI authored Sep 4, 2020
    Copy the full SHA
    4ff7d26 View commit details

Commits on Sep 13, 2020

  1. DevKit updates (#637)

    SonataCI authored Sep 13, 2020
    Copy the full SHA
    5b0346e View commit details

Commits on Sep 16, 2020

  1. DevKit updates

    SonataCI authored and jordisala1991 committed Sep 16, 2020
    Copy the full SHA
    a8f1849 View commit details

Commits on Sep 23, 2020

  1. DevKit updates (#640)

    SonataCI authored Sep 23, 2020
    Copy the full SHA
    890e238 View commit details
  2. DevKit updates (#641)

    SonataCI authored Sep 23, 2020
    Copy the full SHA
    af37f1c View commit details
  3. DevKit updates (#642)

    SonataCI authored Sep 23, 2020
    Copy the full SHA
    5690ac3 View commit details
  4. Copy the full SHA
    1ce0032 View commit details

Commits on Sep 25, 2020

  1. DevKit updates (#643)

    SonataCI authored Sep 25, 2020
    Copy the full SHA
    29da091 View commit details

Commits on Oct 2, 2020

  1. DevKit updates (#645)

    SonataCI authored Oct 2, 2020
    Copy the full SHA
    f6cc72e View commit details
  2. DevKit updates (#647)

    SonataCI authored Oct 2, 2020
    Copy the full SHA
    9af51dd View commit details

Commits on Oct 5, 2020

  1. DevKit updates (#651)

    SonataCI authored Oct 5, 2020
    Copy the full SHA
    5b29561 View commit details

Commits on Oct 6, 2020

  1. DevKit updates (#652)

    SonataCI authored Oct 6, 2020
    Copy the full SHA
    61603e5 View commit details
  2. DevKit updates (#653)

    SonataCI authored Oct 6, 2020
    Copy the full SHA
    e3f81ab View commit details

Commits on Oct 8, 2020

  1. Copy the full SHA
    3d4df1c View commit details
  2. DevKit updates (#654)

    SonataCI authored Oct 8, 2020
    Copy the full SHA
    3fa5623 View commit details

Commits on Oct 10, 2020

  1. DevKit updates

    SonataCI authored and jordisala1991 committed Oct 10, 2020
    Copy the full SHA
    39128d0 View commit details
  2. Applied fixes from FlintCI

    soullivaneuh authored and jordisala1991 committed Oct 10, 2020
    Copy the full SHA
    5d792e8 View commit details

Commits on Oct 11, 2020

  1. DevKit updates (#657)

    SonataCI authored Oct 11, 2020
    Copy the full SHA
    d09c1b9 View commit details

Commits on Oct 19, 2020

  1. DevKit updates (#658)

    SonataCI authored Oct 19, 2020
    Copy the full SHA
    1811862 View commit details
  2. DevKit updates (#659)

    SonataCI authored Oct 19, 2020
    Copy the full SHA
    8232aff View commit details

Commits on Oct 21, 2020

  1. DevKit updates (#660)

    SonataCI authored Oct 21, 2020
    Copy the full SHA
    3b2bc03 View commit details

Commits on Oct 22, 2020

  1. Copy the full SHA
    568122f View commit details
  2. DevKit updates (#661)

    SonataCI authored Oct 22, 2020
    Copy the full SHA
    dbf7d74 View commit details

Commits on Oct 29, 2020

  1. DevKit updates (#663)

    SonataCI authored Oct 29, 2020
    Copy the full SHA
    760caae View commit details
  2. DevKit updates (#664)

    SonataCI authored Oct 29, 2020
    Copy the full SHA
    16cbe09 View commit details

Commits on Oct 30, 2020

  1. DevKit updates (#665)

    SonataCI authored Oct 30, 2020
    Copy the full SHA
    587e06b View commit details

Commits on Nov 1, 2020

  1. updates Dutch translations

    zghosts authored and OskarStark committed Nov 1, 2020
    Copy the full SHA
    2e74856 View commit details

Commits on Nov 4, 2020

  1. DevKit updates (#667)

    SonataCI authored Nov 4, 2020
    Copy the full SHA
    c4c4873 View commit details

Commits on Nov 9, 2020

  1. 3.15 (#669)

    VincentLanglet authored Nov 9, 2020
    Copy the full SHA
    3d7c49e View commit details

Commits on Nov 13, 2020

  1. DevKit updates

    SonataCI authored and VincentLanglet committed Nov 13, 2020
    Copy the full SHA
    420dd04 View commit details
  2. Bump php version

    VincentLanglet committed Nov 13, 2020
    Copy the full SHA
    2da2072 View commit details
  3. Bump phpunit bridge

    VincentLanglet committed Nov 13, 2020
    Copy the full SHA
    38a9be7 View commit details
  4. Copy the full SHA
    dbe942e View commit details
  5. Copy the full SHA
    873fd2a View commit details

Commits on Nov 15, 2020

  1. DevKit updates (#672)

    SonataCI authored Nov 15, 2020
    Copy the full SHA
    2e3dbf7 View commit details

Commits on Nov 16, 2020

  1. DevKit updates (#673)

    SonataCI authored Nov 16, 2020
    Copy the full SHA
    511e9b0 View commit details
Showing with 7,240 additions and 6,939 deletions.
  1. +7 −4 .editorconfig
  2. +0 −9 .flintci.yml
  3. +7 −0 .gitattributes
  4. +1 −5 .travis/after_success_test.sh → .github/FUNDING.yml
  5. +20 −0 .github/ISSUE_TEMPLATE/Bug.md
  6. +6 −0 .github/ISSUE_TEMPLATE/Feature.md
  7. +6 −6 .github/ISSUE_TEMPLATE/config.yml
  8. +2 −2 .github/PULL_REQUEST_TEMPLATE.md
  9. +22 −25 .github/workflows/documentation.yaml
  10. +45 −19 .github/workflows/lint.yaml
  11. +66 −0 .github/workflows/qa.yaml
  12. +9 −11 .github/workflows/stale.yaml
  13. +87 −0 .github/workflows/test.yaml
  14. +1 −1 .gitignore
  15. +26 −24 .php_cs.dist → .php-cs-fixer.dist.php
  16. +10 −0 .readthedocs.yaml
  17. +19 −0 .symfony.bundle.yaml
  18. +0 −67 .travis.yml
  19. +0 −17 .travis/before_install_test.sh
  20. +0 −12 .travis/before_script_test.sh
  21. +0 −11 .travis/check_relevant_test.sh
  22. +0 −17 .travis/install_test.sh
  23. +13 −4 .yamllint
  24. +26 −1 CHANGELOG.md
  25. +44 −330 CONTRIBUTING.md
  26. +46 −11 Makefile
  27. +27 −20 README.md
  28. +17 −0 UPGRADE-3.x.md
  29. +45 −30 composer.json
  30. +31 −20 docs/.doctor-rst.yaml
  31. +0 −153 docs/Makefile
  32. +8 −7 docs/conf.py
  33. +1 −1 docs/reference/api.rst
  34. +9 −9 docs/reference/installation.rst
  35. +4 −3 docs/requirements.txt
  36. +26 −0 phpstan-baseline.neon
  37. +9 −0 phpstan.neon.dist
  38. +11 −12 phpunit.xml.dist
  39. +8 −0 psalm-baseline.xml
  40. +13 −0 psalm.xml
  41. +24 −3 src/Action/AbstractPostArchiveAction.php
  42. +8 −2 src/Action/CollectionPostArchiveAction.php
  43. +1 −1 src/Action/CreateCommentAction.php
  44. +8 −2 src/Action/DailyPostArchiveAction.php
  45. +8 −2 src/Action/MonthlyPostArchiveAction.php
  46. +8 −2 src/Action/TagPostArchiveAction.php
  47. +1 −2 src/Action/ViewPostAction.php
  48. +16 −21 src/Admin/CommentAdmin.php
  49. +14 −25 src/Admin/PostAdmin.php
  50. +2 −0 src/Block/Breadcrumb/NewsArchiveBreadcrumbBlockService.php
  51. +2 −0 src/Block/Breadcrumb/NewsPostBreadcrumbBlockService.php
  52. +3 −1 src/Block/RecentCommentsBlockService.php
  53. +3 −1 src/Block/RecentPostsBlockService.php
  54. +8 −0 src/Command/SynchronizeCommentsCountCommand.php
  55. +9 −5 src/Controller/Api/CommentController.php
  56. +21 −17 src/Controller/Api/PostController.php
  57. +1 −1 src/Controller/CommentAdminController.php
  58. +8 −3 src/Controller/PostController.php
  59. +44 −57 src/DependencyInjection/Configuration.php
  60. +6 −2 src/DependencyInjection/SonataNewsExtension.php
  61. +1 −1 src/Document/BasePostRepository.php
  62. +4 −0 src/Document/CommentManager.php
  63. +10 −5 src/Document/PostManager.php
  64. +2 −1 src/Entity/BasePostRepository.php
  65. +14 −5 src/Entity/CommentManager.php
  66. +6 −4 src/Entity/PostManager.php
  67. +2 −0 src/Exception/NoDriverException.php
  68. +4 −0 src/Form/Type/ApiCommentType.php
  69. +4 −0 src/Form/Type/ApiPostType.php
  70. +3 −0 src/Form/Type/CommentStatusType.php
  71. +4 −2 src/Form/Type/CommentType.php
  72. +52 −12 src/Mailer/Mailer.php
  73. +3 −0 src/Model/CommentManagerInterface.php
  74. +1 −1 src/Model/Post.php
  75. +15 −0 src/Model/PostManagerInterface.php
  76. +4 −1 src/Permalink/CollectionPermalink.php
  77. +5 −2 src/Permalink/DatePermalink.php
  78. +456 −456 src/Resources/translations/SonataNewsBundle.cs.xliff
  79. +532 −532 src/Resources/translations/SonataNewsBundle.de.xliff
  80. +524 −524 src/Resources/translations/SonataNewsBundle.en.xliff
  81. +452 −452 src/Resources/translations/SonataNewsBundle.es.xliff
  82. +468 −468 src/Resources/translations/SonataNewsBundle.fr.xliff
  83. +456 −456 src/Resources/translations/SonataNewsBundle.hu.xliff
  84. +456 −456 src/Resources/translations/SonataNewsBundle.ja.xliff
  85. +524 −456 src/Resources/translations/SonataNewsBundle.nl.xliff
  86. +456 −456 src/Resources/translations/SonataNewsBundle.pt_BR.xliff
  87. +456 −456 src/Resources/translations/SonataNewsBundle.ru.xliff
  88. +456 −456 src/Resources/translations/SonataNewsBundle.sk.xliff
  89. +456 −456 src/Resources/translations/SonataNewsBundle.sl.xliff
  90. +4 −0 src/Serializer/PostSerializerHandler.php
  91. +7 −0 src/SonataNewsBundle.php
  92. +2 −0 src/Status/CommentStatusRenderer.php
  93. +4 −1 src/Twig/Extension/NewsExtension.php
  94. +3 −0 src/Util/HashGenerator.php
  95. +18 −21 tests/{ → Action}/DailyPostArchiveActionTest.php
  96. +12 −8 tests/Controller/Api/CommentControllerTest.php
  97. +95 −91 tests/Controller/Api/PostControllerTest.php
  98. +1 −1 tests/DependencyInjection/Compiler/TwigStringExtensionCompilerPassTest.php
  99. +5 −5 tests/DependencyInjection/SonataNewsExtensionTest.php
  100. +8 −6 tests/Document/CommentManagerTest.php
  101. +8 −3 tests/Document/PostManagerTest.php
  102. +12 −5 tests/Entity/CommentManagerTest.php
  103. +81 −38 tests/Entity/PostManagerTest.php
  104. +5 −1 tests/Fixtures/UserMock.php
  105. +2 −2 tests/Functional/Controller/TruncateControllerTest.php
  106. +7 −7 tests/Functional/RoutingTest.php
  107. +200 −0 tests/Mailer/MailerTest.php
  108. +9 −9 tests/Model/BaseModelTest.php
  109. +10 −10 tests/Model/CommentTest.php
  110. +1 −1 tests/Model/NoDriverManagerTest.php
  111. +20 −20 tests/Model/PostTest.php
  112. +11 −11 tests/Permalink/CollectionPermalinkTest.php
  113. +13 −13 tests/Permalink/DatePermalinkTest.php
  114. +0 −33 tests/autoload.php.dist
  115. +9 −17 tests/bootstrap.php
11 changes: 7 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -11,17 +11,20 @@ charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yaml,yml,twig,php}]
[*.{xml,yaml,yml,twig,php}]
indent_size = 4

[*.{js,json,scss,css}]
indent_size = 2
[.yamllint]
indent_size = 4

[.{travis.yml,flintci.yml}]
[*.{xliff,js,json,scss,css}]
indent_size = 2

[composer.json]
indent_size = 4

[.flintci.yml]
indent_size = 2

[Makefile]
indent_style = tab
9 changes: 0 additions & 9 deletions .flintci.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -6,3 +6,10 @@
*.md export-ignore
tests export-ignore
docs export-ignore
Makefile export-ignore
phpunit.xml.dist export-ignore
phpstan.neon.dist export-ignore
phpstan-baseline.neon export-ignore
phpstan-console-application.php export-ignore
psalm.xml export-ignore
psalm-baseline.xml export-ignore
6 changes: 1 addition & 5 deletions .travis/after_success_test.sh → .github/FUNDING.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/usr/bin/env sh

# DO NOT EDIT THIS FILE!
#
# It's auto-generated by sonata-project/dev-kit package.

set -ev

coveralls -v
github: [core23, OskarStark, greg0ire, wbloszyk]
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,12 @@ about: Something is broken? 🔨
labels: bug, unconfirmed
---

<!--
Since no sonata-maintainer is using this bundle, there is no active support
on it. Therefore it's marked as abandoned and issues will be closed. Feel
free to make a PR instead if you want to keep this project up to date.
-->

<!--
Before you open an issue, make sure this one does not already exist.
Please also read the "guidelines for contributing" link above before posting.
@@ -18,18 +24,30 @@ labels: bug, unconfirmed

#### Sonata packages

<details><summary>show</summary>
<p>

```
$ composer show --latest 'sonata-project/*'
# Put the result here.
```

</p>
</details>

#### Symfony packages

<details><summary>show</summary>
<p>

```
$ composer show --latest 'symfony/*'
# Put the result here.
```

</p>
</details>

#### PHP version

```
@@ -44,6 +62,8 @@ $ php -v
Next sections are for ERRORS only.
-->

## Minimal repository with the bug

## Steps to reproduce

## Expected results
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,12 @@ about: I have a suggestion (and may want to implement it 🙂)!
labels: feature
---

<!--
Since no sonata-maintainer is using this bundle, there is no active support
on it. Therefore it's marked as abandoned and issues will be closed. Feel
free to make a PR instead if you want to keep this project up to date.
-->

## Feature Request

<!-- Provide a summary of the feature. -->
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@

blank_issues_enabled: false
contact_links:
- name: StackOverflow
url: https://stackoverflow.com/questions/tagged/sonata
about: 'Questions tagged with "sonata" on StackOverflow'
- name: Slack
url: https://symfony-devs.slack.com/archives/C3GC7MKM5
about: '#sonata channel on Symfony Devs Slack'
- name: StackOverflow
url: https://stackoverflow.com/questions/tagged/sonata
about: 'Questions tagged with "sonata" on StackOverflow'
- name: Slack
url: https://symfony-devs.slack.com/archives/C3GC7MKM5
about: '#sonata channel on Symfony Devs Slack'
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@
Show us you choose the right branch.
Different branches are used for different things :
- 3.x is for everything backwards compatible, like patches, features and deprecation notices
- master is for deprecation removals and other changes that cannot be done without a BC-break
More details here: https://github.com/sonata-project/SonataNewsBundle/blob/3.x/CONTRIBUTING.md#the-base-branch
- 4.x is for deprecation removals and other changes that cannot be done without a BC-break
More details here: https://github.com/sonata-project/SonataNewsBundle/blob/3.x/CONTRIBUTING.md#base-branch
-->
I am targeting this branch, because {reason}.

47 changes: 22 additions & 25 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -2,50 +2,47 @@
#
# It's auto-generated by sonata-project/dev-kit package.

name: Documentation

on:
schedule:
- cron: '30 0 * * *'
push:
paths:
- 'docs/**'

branches:
- 3.x
- 4.x
pull_request:
paths:
- 'docs/**'

name: Documentation

jobs:
build:
name: Build
name: Sphinx build

runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- name: "Set up Python 3.7"
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.7' # Semantic version range syntax or exact version of a Python version
python-version: '3.7'

- name: "Display Python version"
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: "Install Sphinx dependencies"
run: sudo apt-get install python-dev build-essential

- name: "Cache pip"
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip

key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
restore-keys: ${{ runner.os }}-pip-

- name: "Install custom requirements via pip"
- name: Install custom requirements via pip
run: pip install -r docs/requirements.txt

- name: "Build documentation"
- name: Build documentation
run: make docs

doctor-rst:
@@ -54,12 +51,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- name: "Run DOCtor-RST"
- name: Run DOCtor-RST
uses: docker://oskarstark/doctor-rst
with:
args: --short
args: --short --error-format=github
env:
DOCS_DIR: 'docs/'
DOCS_DIR: docs/
64 changes: 45 additions & 19 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -2,56 +2,78 @@
#
# It's auto-generated by sonata-project/dev-kit package.

on: [push, pull_request]

name: Lint

on:
schedule:
- cron: '30 0 * * *'
push:
branches:
- 3.x
- 4.x
pull_request:

jobs:
php-cs-fixer:
name: PHP-CS-Fixer

runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- name: "Run PHP-CS-Fixer"
uses: docker://oskarstark/php-cs-fixer-ga:2.16.1
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
args: --ansi --verbose --diff --dry-run
php-version: '8.0'
coverage: none
tools: composer:v2, php-cs-fixer:3
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Lint PHP files
run: make lint-php

composer-normalize:
name: composer-normalize
composer:
name: Composer

runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- name: "Run composer-normalize"
uses: docker://localheinz/composer-normalize-action:0.5.2
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
args: --dry-run
php-version: '8.0'
coverage: none
tools: composer:v2, composer-normalize:2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Lint Composer
run: make lint-composer

yaml-files:
name: YAML files

runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- name: "Install Ruby 2.6"
- name: Install Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'

- run: gem install yaml-lint
- name: Install required gem
run: gem install yaml-lint

- name: "Linting..."
- name: Lint files
run: make lint-yaml

xml-files:
@@ -60,10 +82,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: "Checkout"
- name: Checkout
uses: actions/checkout@v2

- run: sudo apt-get update && sudo apt-get install libxml2-utils
- name: Install required dependencies
run: sudo apt-get update && sudo apt-get install libxml2-utils

- name: "Linting..."
- name: Lint xml files
run: make lint-xml

- name: Lint xliff files
run: make lint-xliff
Loading