forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ckan/master
[pull] master from ckan:master
- Loading branch information
Showing
477 changed files
with
47,020 additions
and
32,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Backport merged pull request | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
issue_comment: | ||
types: [created] | ||
permissions: | ||
contents: write # so it can comment | ||
pull-requests: write # so it can create pull requests | ||
jobs: | ||
backport: | ||
name: Backport pull request | ||
runs-on: ubuntu-latest | ||
# Only run when a pull request is merged | ||
# or when a comment starting with `/backport` is created by a Tech Team member | ||
if: |- | ||
${{ | ||
( | ||
github.event_name == 'pull_request_target' && | ||
github.event.pull_request.merged | ||
) || ( | ||
github.event_name == 'issue_comment' && | ||
github.event.issue.pull_request && | ||
contains(fromJSON(vars.TECH_TEAM_USER_IDS), github.event.comment.user.id) && | ||
startsWith(github.event.comment.body, '/backport') | ||
) | ||
}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create backport pull requests | ||
uses: korthout/backport-action@v2 | ||
with: | ||
# Token to authenticate requests to GitHub. This is a Personal Access Token | ||
# from the ckanbot user | ||
github_token: ${{ secrets.BACKPORT_ACTION_PAT }} | ||
# Run when there is one or more "Backport <branch>" labels, | ||
# excluding "Backport pending" | ||
label_pattern: "Backport (?!pending)([^ ]+)$" | ||
merge_commits: skip | ||
copy_assignees: true | ||
pull_description: |- | ||
This is an automated backport pull request 🏗️. | ||
### Details | ||
| | | | ||
| --- | --- | | ||
| Original pull request | #${pull_number} (${pull_title}) | | ||
| Original author | @${pull_author} | | ||
| Target branch | **${target_branch}** | | ||
Please make sure that all relevant checks pass before merging it. | ||
backport-labels: | ||
name: Backport failed labels | ||
runs-on: ubuntu-latest | ||
if: |- | ||
${{ | ||
github.event_name == 'issue_comment' && | ||
github.event.issue.pull_request && | ||
github.event.comment.user.id == vars.CKANBOT_USER_ID && | ||
startsWith(github.event.comment.body, 'Backport failed for') | ||
}} | ||
steps: | ||
- name: Add Backport failed label to PR | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.BACKPORT_ACTION_PAT }} | ||
script: | | ||
await github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
labels: ["Backport failed"] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Allow sysadmins to change usernames of other accounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Table Designer: UI for datastore-first datasets | ||
|
||
Use Table Designer option on resource url/upload control for: | ||
- automatic creation of datatable view for new Table Designer resources | ||
- add/delete columns and edit schema via Data Dictionary page | ||
- primary keys and required columns fully supported | ||
- add individual rows with an auto-generated form based on the schema | ||
- data validation enforced by postgresql triggers, rendered as friendly errors in forms | ||
- extended datatable preview with "edit row" and "delete rows" buttons for managing data | ||
- automatic API documentation for upsert/delete with examples from real data when available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Render snippets faster through better use of existing jinja2 tags. Use ``{% snippet 'path/to/snippet.html', arg1=test %}`` instead of ``{{ h.snippet('path/to/snippet.html', arg1=test) }}`` in templates for better performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`ckan.devserver.watch_patterns` config option supports glob patterns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
update documenatation for CKAN SHELL command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`user_with_token` / `sysadmin_with_token` factory fixtures added to test suite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
The sessions handling has been refactored, dropping the Beaker library in favour of | ||
`Flask-Session <https://flask-session.readthedocs.io/en/latest/config.html>`_. | ||
Note that the default session backend for new sites remains the client-side browser | ||
cookie based. See :ref:`SESSION_TYPE` for alternative backends available. | ||
The following configuration options need to be updated: | ||
|
||
================================= ============================================== | ||
Old configuration key New configuration key | ||
================================= ============================================== | ||
``beaker.session.type`` :ref:`SESSION_TYPE` | ||
``beaker.session.key`` :ref:`SESSION_COOKIE_NAME` | ||
``beaker.session.cookie_expires`` :ref:`SESSION_PERMANENT` (with opposite value) | ||
``beaker.session.timeout`` :ref:`PERMANENT_SESSION_LIFETIME` | ||
``beaker.session.cookie_domain`` :ref:`SESSION_COOKIE_DOMAIN` | ||
``beaker.session.secure`` :ref:`SESSION_COOKIE_SECURE` | ||
``beaker.session.httponly`` :ref:`SESSION_COOKIE_HTTPONLY` | ||
``beaker.session.samesite`` :ref:`SESSION_COOKIE_SAMESITE` | ||
================================= ============================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Move datastore-specific download logic from ckan/templates/package/resource_read.html | ||
to ckanext/datastore/templates/package/resource_read.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Introducing a new parameter to the user_create action - with_apitoken. | ||
When set, this parameter triggers the creation of an API token for the user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
IDataDictionaryForm for extending and validating new keys in the `fields` | ||
dicts. Unlike the `info` free-form dict these new keys are possible to | ||
tightly control with a schema. The schema is built by combining schemas | ||
from from all plugins implementing this interface so plugins implementing | ||
different features may all contribute to the same schema. | ||
|
||
The underlying storage for data dictionary fields has changed. Use: | ||
`ckan datastore upgrade` after upgrading to this release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
- PyUtilib dependency removed. All the primitives for the plugin system are now defined in CKAN. | ||
- The deprecated methods with the form ``after_<action>`` and ``before_<action>`` of the :py:class:`~ckan.plugins.interfaces.IPackageController` and :py:class:`~ckan.plugins.interfaces.IResourceController` interfaces have been removed. The form ``after_<type>_<action>`` must be used from now on. E.g. ``after_create()`` -> ``after_dataset_create()`` or ``after_resource_create()``. | ||
- It is now possible to extend interface classes directly when implementing plugins, which provides better integration with development tools, e.g.:: | ||
|
||
class Plugin(p.SingletonPlugin, IClick): | ||
pass | ||
|
||
This is equivalent to:: | ||
|
||
class Plugin(p.SingletonPlugin): | ||
p.implements(p.IClick, inherit=True) | ||
|
||
- All plugins need to be instances of p.SingletonPlugin, they can't inherit | ||
from a base class that is an instance itself. For example, you need to move | ||
from this:: | ||
|
||
class FirstPlugin(p.SingletonPlugin): | ||
p.implements(ISomething) | ||
def some_method(self): | ||
pass | ||
|
||
class SecondPlugin(FirstPlugin): | ||
p.implements(IAnything) | ||
|
||
To this:: | ||
|
||
class BasePlugin(): | ||
def some_method(self): | ||
pass | ||
|
||
class FirstPlugin(p.SingletonPlugin, BasePlugin): | ||
p.implements(ISomething) | ||
|
||
class SecondPlugin(p.SingletonPlugin, BasePlutin): | ||
p.implements(IAnything) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use custom group type from the activity object if it's not supplied, eg on user activity streams |
Oops, something went wrong.