| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Switching current Agent can help with roles and resource access.
Go to your dashboard by clicking the avatar.
Select agent and hit "Select"
|
| |
|
| |
|
|
|
|
| |
To avoid breaking on logout
|
| |
|
|
|
|
|
|
|
|
| |
Currently there's a bug throwing:
TypeError (nil is not a symbol nor a string)
When creating a Resource...
|
| |
|
| |
|
|
|
|
|
| |
- `current_agent` is now a full instance of Agent
- provide helpers to verify current user roles
|
|
|
|
|
|
|
| |
Since an Agent is required for all records, we scope the routes
and get it present for free ;)
This commit also adds resource views.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Turn `has_and_belongs_to_many` into `has_many :through`: now,
resources and sections are related through Classifications.
- Refactor usage of jsonb column to use ActiveRecord validations
- Attention! store_accessor:
NOTE: If you are using structured database data types (eg. PostgreSQL hstore/json, or MySQL 5.7+ json) there is no need for the
serialization provided by .store. Simply use .store_accessor instead to generate the accessor methods. Be aware that these
columns use a string keyed hash and do not allow access using a symbol.
NOTE: The default validations with the exception of uniqueness will work. For example, if you want to check for uniqueness with
hstore you will need to use a custom validation to handle it.
https://api.rubyonrails.org/classes/ActiveRecord/Store.html
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit introduces a few things:
1. New `content_for` hooks for :debug, :head, and :body_end so that views
code remains consistent and clean
2. Fullscreen map!
3. Welcome#index view, the Rails way
It also moves controller-related code to the controller,
Enjoy!
|
|/ |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Taxonomy > Category > Section
This commit adds models for it.
https://doc.incommon.cc/#classifications
|
| | |
|
|/
|
|
| |
from the data
|
| |
|
|
|
|
| |
edit categories
|
| |
|
| |
|
|
|
|
|
|
| |
This implements resource listing and pagination.
See /resources
|
|
|
|
|
| |
A single worker in development enables in-context debug in the
error console in the browser.
|
|
|
|
|
|
|
|
|
| |
Since we're dealing with lots of resources, we need a way to
handle pagination. This gem seems to be the new kid on the block
and doing things right, including pagination by default an I18n
support. Let's see.
Kaminari: https://github.com/kaminari/kaminari
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Renamed `readme.txt` to `README.md` to stick to standard README case
and take advantage of Markdown formatting supported by code hosting
services.
Also fixed names in the content.
And added import method to the database.
|
|
|
|
|
|
|
| |
t.references already creates an index, so the second index
actually broke things.
You may need to rebuild the database!
|
|
|
|
|
|
|
|
| |
mail -> email since it's unambiguous
Also changed 'Concertes' source to 'ConcertES' since it is
the group name on IN COMMON and the name of the Agent, to
facilitate data import.
|
| |
|
|
|
|
|
|
| |
Resources will be stored as JSON, in the (GeoJSON) :feature column.
They are assigned an UUID upon creation if they don't comme with one.
They belong to an Agent.
|
| |
|
|
|
|
| |
file to explain LocationsParser.rb
|
|
|
|
| |
contains all the locations from the Dewey and Concertes data
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
CVE-2020-10663: Unsafe Object Creation Vulnerability in JSON (Additional fix)
CVE-2020-10933: Heap exposure vulnerability in the socket library
https://www.ruby-lang.org/en/news/2020/03/31/ruby-2-6-6-released/
|
|
|
|
| |
This is a first version of the application, to go beyond simple authentication.
|
|
|
|
|
|
|
| |
When using SSO, the Discourse sends a list of the user groups.
We take the opportunity to update Agency information for the user.
This is performed as a background job, as it involves networked
requests to the Discourse, e.g., to verify group ownership...
|
|
|
|
|
|
|
| |
The Agency class can `grant` and `revoke` roles for a given Agent and User.
Since it is primarily used in context of both an Agent and User, we add
convenience methods so that one can grant or revoke a role simply by passing
the desired role to the instance.
|