<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Blog entries (CubicWeb&#39;s Forge) RSS Feed</title>
    <description></description>
    <link>https://www.cubicweb.org/view?rql=Any%20X%2CT%2CCD%20ORDERBY%20CD%20DESC%20LIMIT%2020%20WHERE%20X%20is%20BlogEntry%2C%20X%20title%20T%2C%20X%20creation_date%20CD</link>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17367054</guid>
  <title>CubicWeb Monthly news April 2021</title>
  <link>https://www.cubicweb.org/blogentry/17367054</link>
  <description>&lt;p&gt;During this period, we tried to fix issues, migrate some of our code base to latest version of CubicWeb. We also pursue some archeology tasks : merging or closing some merge requests from the old heads in CubicWeb&#39;s repository.
We also release new version of logilab-database, RQL and CubicWeb!&lt;/p&gt;
&lt;h2&gt;CubicWeb 3.31, RQL 0.37 and logilab-database 1.18 are out!&lt;/h2&gt;
&lt;p&gt;We released Cubicweb 3.31, RQL 0.37 and logilab-database 1.18 on may 4th. The biggest change is the addition of two new RQL options: &lt;code&gt;NULLSFIRST&lt;/code&gt; and &lt;code&gt;NULLSLAST&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;The &lt;code&gt;NULLSFIRST&lt;/code&gt; and &lt;code&gt;NULLSLAST&lt;/code&gt; options can be used to determine whether nulls appear before or after non-null values in the sort ordering. By default, null values sort as if larger than any non-null value; that is, &lt;code&gt;NULLSFIRST&lt;/code&gt; is the default for DESC order, and &lt;code&gt;NULLSLAST&lt;/code&gt; otherwise.&lt;/p&gt;
&lt;p&gt;Furthermore, a lot of issues have been fixed, and a few new features have been implemented.&lt;/p&gt;
&lt;p&gt;Here is an extract of the changelog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;handle same_site cookies configuration in pyramid.ini&lt;/li&gt;
&lt;li&gt;rql: add support for order by NULLS LAST and NULLS FIRST&lt;/li&gt;
&lt;li&gt;improve default cubicweb skeleton&lt;/li&gt;
&lt;li&gt;dbcreate: don&#39;t ask confirmation to create schema in automatic&lt;/li&gt;
&lt;li&gt;hooks/notification: BREAKING CHANGE correctly initialize operation with event attribute&lt;/li&gt;
&lt;li&gt;RQLExpression: performance issue on RQLExpressions using EXISTS()
  &lt;em&gt;BREAKING CHANGE&lt;/em&gt;: explicitly use EXISTS in RQLExpression for permissions&lt;/li&gt;
&lt;li&gt;fix some security issues&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One can find the full changelog on Cubicweb release page &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/releases/3.31.0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Adding python types to RQL&lt;/h2&gt;
&lt;p&gt;In the past months, python types have progressively been included in RQL.
This is a step forward to python types in CubicWeb itself.&lt;/p&gt;
&lt;p&gt;A lot of work has been done, and there is still a lot of work to do. Adding types to RQL help us to simplify the refactorings.
As RQL&#39;s API is not clearly defined, we will run CubicWeb&#39;s tests on each merge request of RQL, to make sure nothing breaks.&lt;/p&gt;
&lt;h2&gt;Future works&lt;/h2&gt;
&lt;h3&gt;More hackathon, more developpements!&lt;/h3&gt;
&lt;p&gt;To have more time to develop CubicWeb, we will try to save a day each month to make a hackathon.&lt;/p&gt;
&lt;h3&gt;Better handling of large databases&lt;/h3&gt;
&lt;p&gt;In some CubicWeb projects, we have more and more data to manage; and databases are getting bigger and bigger. In the near future, we need to optimize the way CubicWeb deals with large databases. Table partition? More options to create indexes? We are also planning to have part of our databases checked by db experts to see what we can do.&lt;/p&gt;
&lt;p&gt;See you next month!&lt;/p&gt;</description>
  <dc:date>2021-05-12T12:09-01:00</dc:date>
  <dc:creator>François Ferry</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17366765</guid>
  <title>CubicWeb Monthly news february/march 2021</title>
  <link>https://www.cubicweb.org/blogentry/17366765</link>
  <description>&lt;p&gt;It has been quite a time since the last public news ; we will try in the letter to summarize what we did during february and march 2021. During this period, we tried to fix issues, migrate a lot of our code base to latest version of CubicWeb. We also did some archeology ; we have been looking at all the old heads in CubicWeb&#39;s repository, and we have tried to rebase them on the latest public head. A lot of merge requests have been created and are still under review.&lt;/p&gt;
&lt;h2&gt;CubicWeb 3.30 is out!&lt;/h2&gt;
&lt;p&gt;We released Cubicweb 3.30 on march 16th. There are no “big” changes in this release. A lot of issues have been fixed, the documentation have been improved − a new tuto is coming ! − and a few new features have been implemented.&lt;/p&gt;
&lt;p&gt;Here is an extract of the changelog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;it is now possible to use smtp authentification to send an email (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/221&quot;&gt;#221&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;required variables can be read from the environment (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/85&quot;&gt;#85&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;one can specify scripts attributes when using the &lt;code&gt;add_js&lt;/code&gt; function (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/210&quot;&gt;#210&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GROUP_CONCAT&lt;/code&gt; was not returning the expected results when NULL values were encountered (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/109&quot;&gt;#109&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;it is now possible not to drop table indexes when using the MassiveStore (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/219&quot;&gt;#219&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One can find the full changelog on Cubicweb release page &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/releases/3.30.0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Adding python types to RQL&lt;/h2&gt;
&lt;p&gt;In the past months, python types have progressively been included in RQL.
This is a step forward to python types in CubicWeb itself.&lt;/p&gt;
&lt;p&gt;A lot of work has been done, and there is still a lot of work to do. Adding types to RQL help us to simplify the refactorings.
As RQL&#39;s API is not clearly defined, we will run CubicWeb&#39;s tests on each merge request of RQL, to make sure nothing breaks.&lt;/p&gt;
&lt;h2&gt;Separate Back and Front&lt;/h2&gt;
&lt;p&gt;For some time now, the trend has been towards a clear separation between front and back. We are adding more features to use React in the front.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/cwclientlibjs&quot;&gt;CwClientLibJS&lt;/a&gt;, a library allowing to use rql in the browser. CwClientLibJS is now in version 1.1.0 and is able to generate query on entity state (see &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/cwclientlibjs/-/merge_requests/20&quot;&gt;!20&lt;/a&gt;). &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/react-admin-cubicweb/&quot;&gt;react-admin-cubicweb&lt;/a&gt;, new tools to generate admin pages. react-admin-cubicweb is still at an early stage but can display entity attribute and relation. It also allows edition as well. The version 0.3.0 has been released !&lt;/p&gt;
&lt;h2&gt;Release-new&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/release-new&quot;&gt;&lt;em&gt;Release-new&lt;/em&gt;&lt;/a&gt; is one of our latest utility to release new versions of our cubes. Assuming that you are using &lt;a href=&quot;https://www.conventionalcommits.org/en/v1.0.0/&quot;&gt;conventional commits&lt;/a&gt;, you should really like this tool to release new version of your cubes.&lt;/p&gt;
&lt;p&gt;Release-new takes care to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;update the version of the cube in &lt;code&gt;__pkginfo__.py&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;update the &lt;code&gt;debian/control&lt;/code&gt; if there is one&lt;/li&gt;
&lt;li&gt;update the changelog&lt;/li&gt;
&lt;li&gt;create a new commit with theses changes&lt;/li&gt;
&lt;li&gt;tag the commit&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By default, it will try to guess if it is a major, minor or patch release (you can specify the release type if need be). The changelog will be updated and you will be able to edit it before the commit is done. 
The update of the changelog will be eased if you use conventionnal commit as your commit history will be dispatched in the appropriate sections. For instance, the last changelog of CubicWeb has been produced by this tool !&lt;/p&gt;
&lt;h2&gt;Docker images&lt;/h2&gt;
&lt;p&gt;During our last hackathon, a team worked on our CubicWeb Docker images. The code to generate them has been rewritten to be simpler. During this refactoring, we took care to generate docker images for minor versions of CubicWeb as well. Therefore, on https://hub.docker.com/r/logilab/cubicweb/tags you can find docker images for major and minor versions of CubicWeb with different versions of python, to suit your needs the best we can :)&lt;/p&gt;
&lt;p&gt;See you next month!&lt;/p&gt;</description>
  <dc:date>2021-04-09T07:11-01:00</dc:date>
  <dc:creator>Simon Chabot</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17366606</guid>
  <title>CubicWeb Monthly news january 2021</title>
  <link>https://www.cubicweb.org/blogentry/17366606</link>
  <description>&lt;h2&gt;New organisation&lt;/h2&gt;
&lt;p&gt;For this new year, we decided to change how we organise the CubicWeb project at
Logilab. We clarified  how to define priorities and how to contribute.&lt;/p&gt;
&lt;h2&gt;Rotating the coordinator of the month&lt;/h2&gt;
&lt;p&gt;First of all, we pinpointed the need to have a coordinator to organise meetings,
issues and dispatch work between contributors. It was an evidence to define this
role as a rotating responsability. Each month a coordinator is picked from the
volontary participants.  The previous coordinator and the new one have to write
this monthly review together to communicate on what happened for the CubicWeb project
during the month and to officially change the coordinator.&lt;/p&gt;
&lt;h2&gt;New kanban boards&lt;/h2&gt;
&lt;p&gt;To separate the on-going issues and the planned issues for the next versions,
we divided the existing kanban in two.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/boards/201&quot;&gt;first one&lt;/a&gt;
defines the ongoing work and the states of each issue. The column &quot;IMPORTANT&quot; is
used to track the important bug which need to be fixed in the version in
development.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/boards/368&quot;&gt;R&amp;amp;D board&lt;/a&gt; tracks
the ideas and the future versions. This board contains an &quot;IDEA&quot; column, which
is used as a backlog.  Then we can move the &quot;IDEA&quot; issues into the dedicated
column to plan the issue for a specific future version. The &quot;Exploration&quot; label
is set on issues that are not asking to implement a feature, but to explore the
problem and find a good implementation plan. Ideally these issues will lead to
classic issues to be implemented.&lt;/p&gt;
&lt;h2&gt;The CubicWeb Forge is dead, Heptapod is our new friend&lt;/h2&gt;
&lt;p&gt;After months in transition, we decided to announce that the official site to
develop CubicWeb is &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb//&quot;&gt;Logilab&#39;s Heptapod instance&lt;/a&gt;
in replacement of the &lt;a href=&quot;https://www.cubicweb.org/project/&quot;&gt;CubicWeb Forge&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Heptapod is a friendly fork of GitLab that supports Mercurial repositories,
allowing to use all the features of GitLab and all the features of Mercurial
(draft changesets, automatic evolution, etc).&lt;/p&gt;
&lt;p&gt;All cubes were migrated to the new forge. CubicWeb Forge is still
available, but will be made read-only and will be shutdown in the future.&lt;/p&gt;
&lt;h2&gt;Weekly meeting&lt;/h2&gt;
&lt;p&gt;Every tuesday afternoon (UTC+1), there is a weekly meeting.
We discuss the issues in the kanban boards to track progress and plan the work.
Feel free to join us in the &lt;a href=&quot;https://matrix.to/#/#cubicweb:matrix.logilab.org&quot;&gt;CubicWeb matrix room&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;CubicWeb sprint&lt;/h2&gt;
&lt;p&gt;To work on specific issues we have decided to organize regular sprints. The
first one occured on January 26th and 27th 2021 with ten participants.
It was a success as good work was done.&lt;/p&gt;
&lt;h2&gt;Separate Back and Front&lt;/h2&gt;
&lt;p&gt;The main subject which was studied during this sprint was the front/back
separation, which is an &quot;Exploration&quot; issue planned for the &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/195&quot;&gt;CubicWeb
v3.30&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;CWClientLibJS&lt;/h2&gt;
&lt;p&gt;We discussed improving
&lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/cwclientlibjs&quot;&gt;CWClientLibJS&lt;/a&gt; to
help JavaScript developers write RQL queries into the front application.  We
defined a draft API for the QueryBuilder class which will be used to write RQL
queries into JavaScript codebase. This API will allow to write complex RQL
queries easily, such as with optionnal parameters. And the YAMS schema will be
used to add helpers to get entity from eid and to organize the RQL query
response depending on the entity type attributes.&lt;/p&gt;
&lt;p&gt;The next steps will be to test this API into a project and study how to handle
authentication.&lt;/p&gt;
&lt;h2&gt;CWElements&lt;/h2&gt;
&lt;p&gt;Another subject is how to generate frontend forms from the YAMS schema, such as
the current CubicWeb.web implementation but all with the React framework.  The
result is implemented into the &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/cwclientelements&quot;&gt;CWElements
project&lt;/a&gt;:
- handle relations
- allow update queries.&lt;/p&gt;
&lt;p&gt;The ongoing issues for CWElements is to test this form into a project and define
how to establish a graphical identity by specifying CSS files and/or CSS framework
(such as Bootstrap, Material-UI and so on)&lt;/p&gt;
&lt;h2&gt;Cleaning up the CubicWeb code repository&lt;/h2&gt;
&lt;p&gt;We corrected some bugs listed below, but more importantly we transformed all the
branches from the old forge into merge requests in the new forge. Each merge
request will thus be properly tracked and reviewed.&lt;/p&gt;
&lt;p&gt;If you have a patch for CubicWeb, now is a good time to send a merge request.
The merge requests will benefit from the automatimated tests.
Also, all the discussion will be properly stored.&lt;/p&gt;
&lt;h3&gt;Important issues closed and merged&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;[v3.30] [docker] allow to read REQUIRED variables from environments &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/85&quot;&gt;#85&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.30] remove statsd integration? &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/39&quot;&gt;#39&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.30] remove web.cors in favor of wsgicors with pyramid &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/192&quot;&gt;#192&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.30] RQL TODAY in sqlite is not equivalent to RQL TODAY in postgresql &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/109&quot;&gt;#109&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.30] Include pyramid as direct deps in cubicweb by default &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/191&quot;&gt;#191&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.26] Box view of a CWEtype is broken &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/74&quot;&gt;#74&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;[v3.26 &amp;amp; v3.30] No translation in pviews &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/87&quot;&gt;#87&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Documentation&lt;/h3&gt;
&lt;p&gt;Since we started working on Cubicweb 3.29, we have been reworking the
documentation step-by-step.&lt;/p&gt;
&lt;p&gt;A new &lt;a href=&quot;https://cubicweb.readthedocs.io/en/default/&quot;&gt;landing page&lt;/a&gt; was created.&lt;/p&gt;
&lt;p&gt;A new
&lt;a href=&quot;https://cubicweb.readthedocs.io/en/default/tutorials/museum/getting-started/&quot;&gt;tutorial&lt;/a&gt;
is being written.&lt;/p&gt;
&lt;p&gt;It focus on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Data import&lt;/li&gt;
&lt;li&gt;React to display a custom page (with RQL information)&lt;/li&gt;
&lt;li&gt;content-negociation to retrieve information in RDF format&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The fictionnal usecase is a website publishing a list of museum (imported from an existing source).
The final result is compiled in the &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubes/tuto&quot;&gt;tuto cube&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you have any comment on the documentation, create an issue or come in the &lt;a href=&quot;https://matrix.to/#/#cubicweb:matrix.logilab.org&quot;&gt;matrix room&lt;/a&gt;.&lt;/p&gt;</description>
  <dc:date>2021-02-18T09:08-01:00</dc:date>
  <dc:creator>Fabien Amarger</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17339737</guid>
  <title>Release of CubicWeb 3.28</title>
  <link>https://www.cubicweb.org/blogentry/17339737</link>
  <description>&lt;p&gt;Hello CubicWeb community,&lt;/p&gt;
&lt;p&gt;It is with pleasure (and some delay) that we are proud to annonce the release of CubicWeb 3.28.&lt;/p&gt;
&lt;p&gt;The big highlights of this release are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CubicWeb handle content negociation. You can have get entity as RDF when requested in the &lt;code&gt;Accept HTTP Headers&lt;/code&gt; (see this &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/commit/bf02ab50c7a8264d3f2248c57c812c6fd591e0ae&quot;&gt;commit&lt;/a&gt; for instance)&lt;/li&gt;
&lt;li&gt;CubicWeb has a new dynamic database connection pooler, which replaces the old static one. (see this &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/commit/54b6fc18c00a96de3809a8b3f6b33128f3e724b6&quot;&gt;commit&lt;/a&gt; for instance).&lt;/li&gt;
&lt;li&gt;RQL resultsets now store the variables names used in the RQL Select queries. It should ease the use of rsets and will allow to build better tools (see this &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/commit/13fc8ab6dfe37aaacfcb681daa0b60dcaf16cc4c&quot;&gt;commit&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;CubicWeb now requires python 3.6 as a mimimum.&lt;/li&gt;
&lt;li&gt;A big upgrade in our CI workflow has been done, both for tests and documentation.&lt;/li&gt;
&lt;li&gt;The development of CubicWeb has moved to &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb&quot;&gt;Logilab&#39;s heptapod forge&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To get more details about what has been added, modified or removed, you can have a look to the complete &lt;a href=&quot;https://cubicweb.readthedocs.io/en/3.28/changes/changelog/&quot;&gt;changelog&lt;/a&gt; published in Cubicweb&#39;s documentation.&lt;/p&gt;
&lt;p&gt;CubicWeb 3.28 has been published : &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;on &lt;a href=&quot;https://pypi.org/project/cubicweb/3.28.0/&quot;&gt;pipy.org&lt;/a&gt; as a python package.&lt;/li&gt;
&lt;li&gt;on our &lt;a href=&quot;http://apt.logilab.fr/pool/cubicweb-3.28/&quot;&gt;debian repositories&lt;/a&gt; as a Debian package.&lt;/li&gt;
&lt;li&gt;on &lt;a href=&quot;https://hub.docker.com/r/logilab/cubicweb&quot;&gt;hub.docker.com&lt;/a&gt; as a docker image. The tag &lt;code&gt;latest&lt;/code&gt; now targets the 3.28 release.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;CubicWeb 3.29 is now on it way. We will have tomorrow (July 3rd 2020) afternoon a v-sprint (friday-sprint) to work on the documentation of CubicWeb and its satelites. See you there !&lt;/p&gt;</description>
  <dc:date>2020-07-03T08:21-01:00</dc:date>
  <dc:creator>Simon Chabot</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17335055</guid>
  <title>Report of June 16th Cubicweb Meeting</title>
  <link>https://www.cubicweb.org/blogentry/17335055</link>
  <description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Here is the weekly report of last week meeting with some delay...&lt;/p&gt;
&lt;h2&gt;Kanban status&lt;/h2&gt;
&lt;p&gt;You can check the milestone &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/milestones/2&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build the new cubicweb image for all the intranet apps on the public head &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/9&quot;&gt;#9&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Add py{27,3}-from-forge to clients project to ensure we don&#39;t break everything when releasing &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/37&quot;&gt;#37&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;MR waiting on francearchive, Laurent is going to talk to Katia about it. Also Simon says that everything is fine with 3.28rc1 on data.bnf&lt;/li&gt;
&lt;li&gt;all internal apps of logilab runs with 3.28rc1 and there is not bugs to signal&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Todo&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Setup a demo with a SPARQL API&lt;ul&gt;
&lt;li&gt;this work has been started few years ago but today clients are interested in this feature&lt;/li&gt;
&lt;li&gt;option to create an RQL-SPARQL bridge would be too long&lt;/li&gt;
&lt;li&gt;work in progress to compare RQL and SPARQL expressiveness, not done yet&lt;/li&gt;
&lt;li&gt;current lead: using rdflib-sqlalchemy by adding tables next to existing Cubicweb tables and creating a prototype of an OWL to YAMS converter&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Rollback class_deprecated modifications on logilab-common&lt;/li&gt;
&lt;li&gt;Continue typing other libs such as:&lt;ul&gt;
&lt;li&gt;cubicweb (complex)&lt;/li&gt;
&lt;li&gt;rql&lt;/li&gt;
&lt;li&gt;logilab-mtconverter&lt;ul&gt;
&lt;li&gt;Patrick will probably start with this before continuing on RQL&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;logilab-constrain&lt;/li&gt;
&lt;li&gt;logilab-database&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Identify &quot;good first issue&quot; to ease contributing&lt;/li&gt;
&lt;li&gt;Think about the documentation structure and what we want to write (for the next release)&lt;ul&gt;
&lt;li&gt;reduce technical debt&lt;/li&gt;
&lt;li&gt;spread documentation improvements among several sprints&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Current work&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;working on fixes for YAMS tip for CW&lt;/li&gt;
&lt;li&gt;reducing the load on the CI by removing some useless tests when triggered from other CI&lt;/li&gt;
&lt;li&gt;adding needed commits on https://github.com/logilab/yapps to update it for python3 compatibility&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See you very soon for the next report !&lt;/p&gt;</description>
  <dc:date>2020-06-24T07:22-01:00</dc:date>
  <dc:creator>Henri Cazottes</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17326288</guid>
  <title>Report of June 10th Cubicweb Meeting</title>
  <link>https://www.cubicweb.org/blogentry/17326288</link>
  <description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;We&#39;ve just published the RC1 for CubicWeb &lt;a href=&quot;https://pypi.org/project/cubicweb/3.28.0rc1/&quot;&gt;https://pypi.org/project/cubicweb/3.28.0rc1/&lt;/a&gt; and a new version 1.7.0 for logilab-common &lt;a href=&quot;https://pypi.org/project/logilab-common/1.7.0/&quot;&gt;https://pypi.org/project/logilab-common/1.7.0/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Our current focus is finishing the last details for the release.&lt;/p&gt;
&lt;h2&gt;Milestone update&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;the changelog is now part of the documentation of logilab-common to make sure it is visible&lt;/li&gt;
&lt;li&gt;test our clients project against our latest version on our repository to ensure we don&#39;t break everything when making a release&lt;/li&gt;
&lt;li&gt;allow 2 randomly breaking tests to fail (those aren&#39;t part of the code we are currently working on)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Current roadmap&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;3.28, the version we are finishing right now, the current changelog is available here &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/blob/branch/default/doc/changes/3.28.rst&quot;&gt;https://forge.extranet.logilab.fr/cubicweb/cubicweb/blob/branch/default/doc/changes/3.28.rst&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;3.29 on which we&#39;ll focus on writing documentation&lt;/li&gt;
&lt;li&gt;4.0 in which we&#39;ll introduce the usage of semver for CubicWeb regarding its dependencies and release YAMS refactored version&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Semver&lt;/h2&gt;
&lt;p&gt;One of our focus right now is to make stable releases of our core projects that won&#39;t break all the things ™ and we&#39;ve made a lot of improvement in our testing suit to ensure that we test everything against our latest modifications before a release is made. Another problem we have right now is that CW only depends on a minimum version number for its dependencies, this mean that if we want to make a new release for one of the dependencies that will have some breaking code this introduce the risk of breaking all new CW installations.&lt;/p&gt;
&lt;p&gt;To solve this situation we have decided to implement semantic versioning and only introduction breaking changes in major releases and in addition to only depends on one specific major release at the time in CW dependencies. This way, when we need to make a new release with breaking changes, this will be a major release and we won&#39;t break all new CW installations.&lt;/p&gt;
&lt;p&gt;We have planned to start implementing this strategy starting CW version 4.0&lt;/p&gt;
&lt;h2&gt;Various updates&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;a lot of fixes have been pushed on YAMS and CubicWeb to make CubicWeb compatible with the latest modifications in YAMS&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See you next week!&lt;/p&gt;</description>
  <dc:date>2020-06-10T12:46-01:00</dc:date>
  <dc:creator>Laurent Peuch</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17322749</guid>
  <title>Report of June 3rd Cubicweb Meeting</title>
  <link>https://www.cubicweb.org/blogentry/17322749</link>
  <description>&lt;p&gt;Hi everyrone,&lt;/p&gt;
&lt;p&gt;Version 3.28-rc1 is on its way! First, let&#39;s have a look to the issue board state.&lt;/p&gt;
&lt;h2&gt;Milestone update&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Introduced types &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/10&quot;&gt;#10&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;logilab.common.deprecation has been typed (see hackathon report below): &lt;strong&gt;done&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add tests for the content negociation &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/merge_requests/20&quot;&gt;!20&lt;/a&gt;: MR about to be accepted&lt;/li&gt;
&lt;li&gt;Update logilab-common changelogs &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/43&quot;&gt;#43&lt;/a&gt; : &lt;strong&gt;done&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Add automatic doc re-build to the CubicWeb CI &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/8&quot;&gt;#8&lt;/a&gt; : &lt;strong&gt;done&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Todo&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Review and accept MR &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/merge_requests/20&quot;&gt;!20&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Release logilab-common and cubicweb 3.28-rc1&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Semver discussions&lt;/h2&gt;
&lt;p&gt;Right now, dependencies are only specifying a minimal version. So if we introduce a breaking change in a new version, apps might break too. We plan to follow semver convention to prevent this from happening.&lt;/p&gt;
&lt;p&gt;We also discussed the idea of aligning version between compatible tools, so every major version would work with the same major version of other tools/dependencies.&lt;/p&gt;
&lt;p&gt;This idea will be introduced in 3.29 documentation, but will probably start with the release of Cubicweb version 4.&lt;/p&gt;
&lt;h2&gt;Hackathon&lt;/h2&gt;
&lt;p&gt;Last Friday we did an internal hackathon at Logilab and Laurent, Noé and I spent time working on Cubicweb. We mainly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;wrote changelogs for:&lt;ul&gt;
&lt;li&gt;logilab-common&lt;/li&gt;
&lt;li&gt;cubicweb&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;tried to add a &lt;a href=&quot;https://docs.gitlab.com/ee/user/project/description_templates.html&quot;&gt;Merge Request template&lt;/a&gt; on Cubicweb&lt;ul&gt;
&lt;li&gt;doesn&#39;t work on Heptapod actually, we will ask Octobus to have a look (see &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/46&quot;&gt;#46&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;added annotation types on logilab.common.deprecated&lt;/li&gt;
&lt;li&gt;improved &lt;code&gt;tox.ini&lt;/code&gt; and added a &lt;code&gt;gitlag-ci.yaml&lt;/code&gt; file in cube skeleton&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That&#39;s all! You should receive and email soon about the rc1 release.&lt;/p&gt;
&lt;p&gt;Thanks for reading,&lt;/p&gt;
&lt;p&gt;Henri&lt;/p&gt;</description>
  <dc:date>2020-06-03T13:11-01:00</dc:date>
  <dc:creator>Henri Cazottes</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17317952</guid>
  <title>Report of May 26th Cubicweb Meeting</title>
  <link>https://www.cubicweb.org/blogentry/17317952</link>
  <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Welcome back to another weekly report! Today, the following topics have been discussed.&lt;/p&gt;
&lt;h2&gt;Broken tests situation, follow up&lt;/h2&gt;
&lt;p&gt;Migrating CubicWeb to Heptapod and modifications in dependencies resulted in broken tests as it was presented last week. Work has been done on Friday afternoon thanks to Simon and Laurent, but it&#39;s not fixed yet. Tox is now happy but we still have a bug on a test that succeeds locally but not when run by the CI job. We do have a lead which may concern firefox usage in headless mode. Jobs logs are &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/jobs/29243&quot;&gt;available here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Milestone update&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/10&quot;&gt;Introduced types&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;Types have been added in Yams, &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/yams/merge_requests/18&quot;&gt;merge request&lt;/a&gt; about to be reviewed&lt;/li&gt;
&lt;li&gt;We choose to dissociate this issue from the actual release as it&#39;s more related to Yams and not mandatory to release a 3.28 version.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/8&quot;&gt;Re-build ReadTheDoc for every release&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Done for most of the dependencies but not CubicWeb yet&lt;/li&gt;
&lt;li&gt;Two dependencies, &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/logilab-mtconverter&quot;&gt;mtconvert&lt;/a&gt; and &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source/logilab-constraint&quot;&gt;constraint&lt;/a&gt; don&#39;t have doc nor tests, we think about removing them instead of creating and maintaining this code which is pretty old&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/38&quot;&gt;Move to semantic versionning&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;we talked about improving dependencies requirements to ease the release process (not giving only one version)&lt;/li&gt;
&lt;li&gt;we think we should stick to semver, but we need to discuss it more (should we bump all major version to the same number for interoperable dependencies, etc...)&lt;/li&gt;
&lt;li&gt;As those questions need to be discussed, we choose to move this issue to the 3.29 milestone&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/5&quot;&gt;Add tests to content negociation&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;Need to be done&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/7&quot;&gt;Check if ?vid=rdf is still working&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;Done&lt;/li&gt;
&lt;li&gt;We did spot that requesting &lt;code&gt;vid=rdf&lt;/code&gt; or using content negotiation would not return the same RDF. We should fix this to have a more consistent behavior. Will be added for the next release.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Todo before releasing version 3.28&lt;/h2&gt;
&lt;p&gt;To sum up, before releasing the next CubicWeb version, we need to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fix CI tests&lt;/li&gt;
&lt;li&gt;Add automatic doc re-build to the CubicWeb CI&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This should be done and released within the next two weeks.&lt;/p&gt;
&lt;h2&gt;Side notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;For the next release we should align CubicWeb with changes made in Yams&lt;/li&gt;
&lt;li&gt;Release early, release often&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See you next week!&lt;/p&gt;</description>
  <dc:date>2020-06-02T07:23-01:00</dc:date>
  <dc:creator>Henri Cazottes</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17314415</guid>
  <title>Report of May 19th Cubicweb Meeting</title>
  <link>https://www.cubicweb.org/blogentry/17314415</link>
  <description>&lt;p&gt;Hi everyone,                                                                                                                                                                      &lt;/p&gt;
&lt;p&gt;Yesterday we held a new CubicWeb meeting, and we would like to share with you what was said during that meeting :                                                                                                                                       &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;some issues have been migrated from cubicweb.org forge to the heptapod forge. You can find them &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/issues/&quot;&gt;here&lt;/a&gt;. Only the issues which were in the &lt;a href=&quot;https://www.cubicweb.org/card/cw-dev-board&quot;&gt;cubicweb-dev-board&lt;/a&gt; have been migrated, the others have been considered too old to make their migration worthwhile ;                                                                                                                                 &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;new &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/milestones&quot;&gt;milestones&lt;/a&gt; have been created, and some issues have been affected to them ;                                                                                                                                                                   &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;if you want to help out with Cubicweb&#39;s development, you can have a look to the &lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/boards&quot;&gt;Issues Board&lt;/a&gt;, and pick one task in the “To Do” column (this task should be related to a milestone) ;                                                                                                                                    &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CW tests are still failing on the forge, and it&#39;s also related to other packages that have been released. Fixing those tests is quite urgent now, therefore we suggest to fix them in a sprint this Friday afternoon. Feel                                                                                                  &lt;br/&gt;
  free to join !                                                                                                                                                              &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On main Cubicweb&#39;s dependencies (&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb/cubicweb/uploads/fef861f3ff657e924f5bfcd2e8716f5f/dependencies.png&quot;&gt;RQL, YAMS, logilab-common, etc&lt;/a&gt;), a heptapod job has been added to trigger CW&#39;s tests with the last version of the dependency in the forge and not only the last &lt;em&gt;released&lt;/em&gt; version on pypi. This should help to release new versions of CW&#39;s dependencies with                                                                                                  &lt;br/&gt;
  more confidence. (for now, it only triggers the job, a future version of heptapod should provide a better integration of multi-project pipelines) ;                                                                                                                                                                &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The documentations of CubicWeb&#39;s dependencies are now automatically published on readthedocs. The work is in progress for CubicWeb itself ; &lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Next week, if the tests are successful, we will talk about a release candidate for 3.28.                                                                                                                                                           &lt;/p&gt;
&lt;p&gt;Stay tuned :)&lt;/p&gt;</description>
  <dc:date>2020-05-20T15:41-01:00</dc:date>
  <dc:creator>Simon Chabot</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17310072</guid>
  <title>A roadmap to Cubicweb 3.28 (and beyond)</title>
  <link>https://www.cubicweb.org/blogentry/17310072</link>
  <description>&lt;p&gt;Yesterday at Logilab we had a small meeting to discuss about a roadmap to
Cubicweb 3.28 (and beyond), and we would like to report back to you from this
meeting.&lt;/p&gt;
&lt;p&gt;Cubicweb 3.28 will mainly bring the implementation of content negotiation. It
means that Cubicweb will handle content negotiation and will be able to return
RDF using Cubicweb&#39;s ontology when requested by a client.&lt;/p&gt;
&lt;p&gt;The 3.28 will have other features as well (like a new &lt;code&gt;variables&lt;/code&gt; attributes to
ResultSet that contains the name of the projected variables, etc). Those
features will be detailed the release changelog.&lt;/p&gt;
&lt;p&gt;Before releasing this version, we would like to finish the migration to
heptapod, to make sure that everything is ok. The remaining tasks are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;fixing the CI (there is still some random failings, that need further investigation)&lt;/li&gt;
&lt;li&gt;migrate the jenkins job that pushes images to hub.docker.com on heptapod,
  to make everthing available from the forge. It will be explicit for
  everyone when a job is done, and what is its status.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Beside of releasing Cubicweb 3.28, its ecosystem will also be updated:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;logilab-common, a new version will be released very soon, which brings a
  refactoring of the deprecation system, and annotations (coming from
  pyannotate)&lt;/li&gt;
&lt;li&gt;yams, a new version is coming. This version:&lt;/li&gt;
&lt;li&gt;brings type annotation (manually done, a carefully checked);&lt;/li&gt;
&lt;li&gt;removes a lot of abbreviation to make the code clearer;&lt;/li&gt;
&lt;li&gt;removes some magic related to a object which used to behave like a
  string;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The goal of these two releases, is to have type annotations in the core
libraries used by CubicWeb, and then to be able to bring type annotation into
CubicWeb itself, in a future version.&lt;/p&gt;
&lt;p&gt;On those projects, some “modernisation” has been started too ; (fixing flake8
when needed, repaint the code &lt;a href=&quot;https://github.com/psf/black&quot;&gt;black&lt;/a&gt;). This “modernisation” step is still on
going on the different projects related to CubicWeb (and achieved for yams, and
logilab-common).&lt;/p&gt;
&lt;p&gt;In the medium term, we would like to focus on the documentation of CubicWeb and
its ecosystem. We do know that it&#39;s really hard for newcomers (and even ourself
sometime) to understand how to start, what each module is doing etc. An
automatic documentation has been released for some modules (see &lt;a href=&quot;https://logilab-database.readthedocs.io/&quot;&gt;1&lt;/a&gt;, 
&lt;a href=&quot;https://logilab-common.readthedocs.io/&quot;&gt;2&lt;/a&gt; or &lt;a href=&quot;https://rql.readthedocs.io/&quot;&gt;3&lt;/a&gt;
for instance). It would be nice to automatize the update of the documentation on
readthedocs, update the old examples, and add new ones about the new feature we
are adding (like content negotiation, pyramid predicates, etc). This could be
done in team Friday&#39;s sprint or hackathon for instance. CubicWeb would also need
some modernisation (running black ? and above all, make all files flake8
compilant…).&lt;/p&gt;
&lt;p&gt;Regarding CubicWeb development, all (or, at least a lot of) cubes and Cubicweb
related projects moved from cubicweb.org&#39;s forge to our instance of heptapod
(&lt;a href=&quot;https://forge.extranet.logilab.fr/cubicweb&quot;&gt;4&lt;/a&gt; and &lt;a href=&quot;https://forge.extranet.logilab.fr/open-source&quot;&gt;5&lt;/a&gt;). Some issues have been imported from cubicweb.org to heptapod. New
issues should be opened on heptapod, and the review should also be done there.
We hope that will ease the reappropriation of the code basis and stimulates new
merge-requests :)&lt;/p&gt;
&lt;p&gt;To end this report, we like to emphasis that we will try to make a « remote
Cubicweb meeting » each Tuesday at 2 pm. If you would like to participate to
this meeting, it&#39;s with great pleasure (if you need the webconference URL, contact one of us, we will provide it to you). We also created a #Cubicweb channel
on &lt;a href=&quot;https://matrix.logilab.org/&quot;&gt;matrix.logilab.org&lt;/a&gt; ; feel free to ask for an invitation if you&#39;d like to
discuss Cubicweb related things with us.&lt;/p&gt;
&lt;p&gt;All the best, and… see you next Tuesday :)&lt;/p&gt;</description>
  <dc:date>2020-05-13T08:03-01:00</dc:date>
  <dc:creator>Simon Chabot</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17270186</guid>
  <title>What is new in CubicWeb 3.27 ?</title>
  <link>https://www.cubicweb.org/blogentry/17270186</link>
  <description>&lt;p&gt;Hello CubicWeb community,&lt;/p&gt;
&lt;p&gt;We are pleased to announce the release of CubicWeb 3.27. Many thanks to
all the contributors of this release!&lt;/p&gt;
&lt;p&gt;Main changes in this release are listed below. Please note this release &lt;strong&gt;drops python2 support&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Enjoy this new version!&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;new-features&quot;&gt;
&lt;h3&gt;&lt;a&gt;New features&lt;/a&gt;&lt;/h3&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;Tests can now be run concurrently across multiple processes. You can use
&lt;a class=&quot;reference&quot; href=&quot;https://github.com/pytest-dev/pytest-xdist&quot;&gt;pytest-xdist&lt;/a&gt; for that. For tests using &lt;cite&gt;PostgresApptestConfiguration&lt;/cite&gt; you
should be aware that &lt;cite&gt;startpgcluster()&lt;/cite&gt; can&#39;t run concurrently. Workaround is
to call pytest with &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;--dist=loadfile&lt;/span&gt;&lt;/tt&gt; to use a single test process per test
module or use an existing database cluster and set &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;db-host&lt;/span&gt;&lt;/tt&gt; and
&lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;db-port&lt;/span&gt;&lt;/tt&gt; of &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;devtools.DEFAULT_PSQL_SOURCES[&#39;system&#39;]&lt;/span&gt;&lt;/tt&gt; accordingly.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;on &lt;cite&gt;cubicweb-ctl create&lt;/cite&gt; and &lt;cite&gt;cubicweb-ctl pyramid&lt;/cite&gt;, if it doesn&#39;t already
exist in the instance directory, the &lt;cite&gt;pyramid.ini&lt;/cite&gt; file will be generated
with the needed secrets.&lt;/li&gt;
&lt;li&gt;add a --pdb flag to all cubicweb-ctl command to launch (i)pdb if an exception
occurs during a command execution.&lt;/li&gt;
&lt;li&gt;the --loglevel and --dbglevel flags are available for all cubicweb-ctl
instance commands (and not only the &lt;tt class=&quot;docutils literal&quot;&gt;pyramid&lt;/tt&gt; one)&lt;/li&gt;
&lt;li&gt;following &quot;only in foreground&quot; behavior all commands logs to stdout by
default from now on. To still log to a file pass &lt;tt class=&quot;docutils literal&quot;&gt;log_to_file=True&lt;/tt&gt; to
&lt;tt class=&quot;docutils literal&quot;&gt;CubicWebConfiguration.config_for&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;add a new migration function &lt;cite&gt;update_bfss_path(old_path, new_path)&lt;/cite&gt; to update
the path in Bytes File-System Storage (bfss).&lt;/li&gt;
&lt;li&gt;on every request display request path and selected controller in CLI&lt;/li&gt;
&lt;li&gt;migration interactive mode improvements:&lt;ul&gt;
&lt;li&gt;when an exception occurs, display the full traceback instead of only the exception&lt;/li&gt;
&lt;li&gt;on migration p(db) choice, launch ipdb if it&#39;s installed&lt;/li&gt;
&lt;li&gt;on migration p(db) choice, give the traceback to pdb if it&#39;s available,
this mean that the (i)pdb interactive session will be on the stack of
the exception instead of being on the stack where pdb is launched which
will allow the user to access all the relevant context of the exception
which otherwise is lost&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;on DBG_SQL and/or DBG_RQL, if pygments is installed, syntax highlight sql/rql
debug output&lt;/li&gt;
&lt;li&gt;allow to specify the instance id for any instance command using the
CW_INSTANCE global variable instead of or giving it as a cli argument&lt;/li&gt;
&lt;li&gt;when debugmode is activated (&#39;-D/--debug&#39; on the pyramid command for
example), the HTML generated by CW will contains new tags that will indicate
by which object in the code it has been generated and in which line of which
source code.
For example:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
&amp;lt;div
  cubicweb-generated-by=&quot;cubicweb.web.views.basetemplates.TheMainTemplate&quot;
  cubicweb-from-source=&quot;/home/user/code/logilab/cubicweb/cubicweb/web/views/basetemplates.py:161&quot;
  id=&quot;contentmain&quot;&amp;gt;
    &amp;lt;h1
      cubicweb-generated-by=&quot;cubicweb.web.views.basetemplates.TheMainTemplate&quot;
      cubicweb-from-source=&quot;/home/user/code/logilab/cubicweb/cubicweb/view.py:136&quot;&amp;gt;
        unset title
    &amp;lt;/h1&amp;gt;
    [...]
&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;p&gt;While this hasn&#39;t been done yet, this feature is an open path for building dynamic tools that can help inspect the page.&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;a new debug channels mechanism has been added, you can subscribe to one of
those channels in your python code to build debug tools for example (the
pyramid custom panels are built using that) and you will receive a
datastructure (a dict) containing related information. The available channels
are: controller, rql, sql, vreg, registry_decisions&lt;/li&gt;
&lt;li&gt;add a new &#39;-t/--toolbar&#39; option the pyramid command to activate the pyramid debugtoolbar&lt;/li&gt;
&lt;li&gt;a series of pyramid debugtoolbar panels specifically made for CW, see bellow&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;pyramid-debugtoolbar-and-custom-panel&quot;&gt;
&lt;h3&gt;&lt;a&gt;Pyramid debugtoolbar and custom panel&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The pyramid debugtoolbar is now integrated into CubicWeb during the development
phase when you use the &#39;pyramid&#39; command. To activate it you need to pass the
&#39;-t/--toolbar&#39; argument to the &#39;pyramid&#39; command.&lt;/p&gt;
&lt;p&gt;In addition, a series of custom panels specifically done for CW are now
available, they display useful information for the development and the
debugging of each page. The available panels are:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;a general panel which contains the selected controller, the current
settings and useful links &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_general_panel.png&quot;&gt;screenshot1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;a panel listing all decisions taken in registry for building this page &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_registry_decisions_panel.png&quot;&gt;screenshot2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;a panel listing the content of the vreg registries &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_registry_content_panel.png&quot;&gt;screenshot3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;a panel listing all the RQL queries made during a request &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_rql_panel.png&quot;&gt;screenshot4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;a panel listing all the SQL queries made during a request &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_sql_panel.png&quot;&gt;screenshot5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;Furthermore, in all those panels, next to each object/class/function/method a
link to display its source code is available (shown as &#39;[source]&#39; &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_show_source_link.png&quot;&gt;screenshot6&lt;/a&gt;) and also every file path shown
is a traceback is also a link to display the corresponding file (&lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_traceback_source_link.png&quot;&gt;screenshot7&lt;/a&gt;). For example: &lt;a class=&quot;reference&quot; href=&quot;https://cubicweb.readthedocs.io/en/3.27/_images/debugtoolbar_show_source.png&quot;&gt;screenshot8&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;backwards-incompatible-changes&quot;&gt;
&lt;h3&gt;&lt;a&gt;Backwards incompatible changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;Standardization on the way to launch a cubicweb instance, from now on the
only way to do that will be the used the &lt;tt class=&quot;docutils literal&quot;&gt;pyramid&lt;/tt&gt; command. Therefore:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;cubicweb-ctl&lt;/span&gt;&lt;/tt&gt; commands &quot;start&quot;, &quot;stop&quot;, &quot;restart&quot;, &quot;reload&quot; and &quot;status&quot;
have been removed because they relied on the Twisted web server backend that
is no longer maintained nor working with Python 3.&lt;/li&gt;
&lt;li&gt;Twisted web server support has been removed.&lt;/li&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;cubicweb-ctl&lt;/span&gt; wsgi&lt;/tt&gt; has also been removed.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;Support for legacy cubes (in the &#39;cubes&#39; python namespace) has been dropped.
Use of environment variables CW_CUBES_PATH and CUBES_DIR is removed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;Python 2 support has been dropped.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;Exceptions in notification hooks aren&#39;t catched-all anymore during tests so
one can expect tests that seem to pass (but were actually silently failing)
to fail now.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;All &quot;cubicweb-ctl&quot; command only accept one instance argument from now one
(instead of 0 to n)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;&#39;pyramid&#39; command will always run in the foreground now, by consequence the
option &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;--no-daemon&lt;/span&gt;&lt;/tt&gt; has been removed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;DBG_MS flag has been removed since it is not used anymore&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;transactions db logs where displayed using the logging
(debug/info/warning...) mechanism, now it is only displayed if the
corresponding DBG_OPS flag is used&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;deprecated-code-drops&quot;&gt;
&lt;h3&gt;&lt;a&gt;Deprecated code drops&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Most code deprecated by version 3.25 or older versions has been dropped.&lt;/p&gt;
&lt;/div&gt;</description>
  <dc:date>2020-02-03T08:55-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17252883</guid>
  <title>Implementing the langserver protocol for RQL</title>
  <link>https://www.cubicweb.org/blogentry/17252883</link>
  <description>&lt;p&gt;One of our next project for cubicweb and its ecosystem is to implement
the &lt;a href=&quot;https://langserver.org/&quot;&gt;langserver protocol&lt;/a&gt; for the &lt;a href=&quot;https://docs.cubicweb.org/book/annexes/rql/language&quot;&gt;RQL language&lt;/a&gt; that we are using to query the data stored in CubicWeb.
The langserver protocol is an idea to solve one problem: to integrate
operation for various languages, most IDE/tools needs to reimplement
the wheel all the time, doing custom plugin etc... To solve this
issue, this protocol has been invented with one idea: make one server
for a language, then all IDE/tools that talks this protocol will be
able to integrate it easily.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;language server protocol matrice illustration&quot; src=&quot;https://www.cubicweb.org/file/17252877/raw/2019-10-31-115826_1187x247_scrot.png&quot;/&gt;&lt;/p&gt;
&lt;p&gt;So the idea is simple: let&#39;s build our own server for RQL so we&#39;ll be
able to integrate it everywhere and build tools for it.&lt;/p&gt;
&lt;p&gt;Since RQL has similarities with GraphQL, one of the goals is to have something similar to &lt;a href=&quot;https://github.com/graphql/graphiql&quot;&gt;Graphiql&lt;/a&gt; which is for example used by GitHub to expose their API at
&lt;a href=&quot;https://developer.github.com/v4/explorer/&quot;&gt;https://developer.github.com/v4/explorer/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;github graphql explorer&quot; src=&quot;https://www.cubicweb.org/file/17252879/raw/2019-10-31-120925_804x729_scrot.png&quot;/&gt;&lt;/p&gt;
&lt;p&gt;So this post has several objectives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;gather people that would be motivate to work on that subject, for now
  there is Laurent Wouters and me :)&lt;/li&gt;
&lt;li&gt;explain to you in more details (not all) how the language server
  protocol works&lt;/li&gt;
&lt;li&gt;show what is already existing for both langserver in python and rql&lt;/li&gt;
&lt;li&gt;show the first roadmap we&#39;ve discussed with Laurent Wouters on how
  we think we can do that :)&lt;/li&gt;
&lt;li&gt;be a place to discuss this project, things aren&#39;t fixed yet :)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;So, what is the language server protocol (LSP)?&lt;/h2&gt;
&lt;p&gt;It&#39;s a JSON-RPC based protocol where the IDE/tool talks to the server.
JSON-RPC, said simply, is a bi-directional protocol in json.&lt;/p&gt;
&lt;p&gt;In this procotol you have 2 kind of exchanges:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;requests: where the client (or server) ask the server (or the server
  ask the client) something and a reply is expected. For example:
  where is the definition of this function?&lt;/li&gt;
&lt;li&gt;notifications: the same but without an expected reply. For example:
  linting information or error detection&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt=&quot;language server protocol example schema&quot; src=&quot;https://www.cubicweb.org/file/17252878/raw/language-server.png&quot;/&gt;&lt;/p&gt;
&lt;p&gt;The LSP specifications has 3 bigs categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;everything about initialization/shutdown the server etc...&lt;/li&gt;
&lt;li&gt;everything regarding text and workspace synchronization between the
  server and the client&lt;/li&gt;
&lt;li&gt;the actual things that interest us: a list of languages features
  that the server supports (you aren&#39;t in the obligation to implement
  everything)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is the simplified list of possible languages features that the
website present:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Code completion&lt;/li&gt;
&lt;li&gt;Hover&lt;/li&gt;
&lt;li&gt;Jump to def&lt;/li&gt;
&lt;li&gt;Workspace symbols&lt;/li&gt;
&lt;li&gt;Find references&lt;/li&gt;
&lt;li&gt;Diagnostics&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href=&quot;https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textDocument_completion&quot;&gt;specification is much more detailed but way less comprehensive&lt;/a&gt;
(look at the &quot;language features&quot; on the right menu for more details):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;completion/completion resolve&lt;/li&gt;
&lt;li&gt;hover (when you put your cursor on something)&lt;/li&gt;
&lt;li&gt;signatureHelp&lt;/li&gt;
&lt;li&gt;declaration (go to...)&lt;/li&gt;
&lt;li&gt;definition (go to...)&lt;/li&gt;
&lt;li&gt;typeDefinition (go to...)&lt;/li&gt;
&lt;li&gt;implementation (go to...)&lt;/li&gt;
&lt;li&gt;references&lt;/li&gt;
&lt;li&gt;documentHighlight (highlight all references to a symbol)&lt;/li&gt;
&lt;li&gt;documentSymbol (&quot;symbol&quot; is a generic term for variable, definitions etc...)&lt;/li&gt;
&lt;li&gt;codeAction (this one is interesting)&lt;/li&gt;
&lt;li&gt;codeLens/codeLens resolve&lt;/li&gt;
&lt;li&gt;documentLink/documentLink resolve&lt;/li&gt;
&lt;li&gt;documentColor/colorPresentation (stuff about picking colors)&lt;/li&gt;
&lt;li&gt;formatting/rangeFormatting/onTypeFormatting (set tab vs space)&lt;/li&gt;
&lt;li&gt;rename/prepareRename&lt;/li&gt;
&lt;li&gt;foldingRange&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Comments are from my current understanding of the spec, it might not
be perfect)&lt;/p&gt;
&lt;p&gt;The one that is really interesting here (but not our priority right
now) is &quot;codeAction&quot;, it&#39;s basically a generic entry point for every
refactoring kind of operations as some examples from the spec shows:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Example extract actions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Extract method&lt;/li&gt;
&lt;li&gt;Extract function&lt;/li&gt;
&lt;li&gt;Extract variable&lt;/li&gt;
&lt;li&gt;Extract interface from class&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example inline actions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Inline function&lt;/li&gt;
&lt;li&gt;Inline variable&lt;/li&gt;
&lt;li&gt;Inline constant&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example rewrite actions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Convert JavaScript function to class&lt;/li&gt;
&lt;li&gt;Add or remove parameter&lt;/li&gt;
&lt;li&gt;Encapsulate field&lt;/li&gt;
&lt;li&gt;Make method static&lt;/li&gt;
&lt;li&gt;Move method to base class&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;But I&#39;m not expecting us to have direct need for it but that really
seems one to keep in mind.&lt;/p&gt;
&lt;p&gt;One question that I frequently got was: is syntax highlight included
in the langserver protocol? Having double checked with Laurent
Wouters, it&#39;s actually not the case (I thought documentSymbol could be
used for that but actually no).&lt;/p&gt;
&lt;p&gt;But we already have an implementation for that in pygments:
&lt;a href=&quot;https://hg.logilab.org/master/rql/file/d30c34a04ebf/rql/pygments_ext.py&quot;&gt;https://hg.logilab.org/master/rql/file/d30c34a04ebf/rql/pygments_ext.py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;rql pygments syntax highlight&quot; src=&quot;https://www.cubicweb.org/file/17252882/raw/2019-10-31-121948_310x104_scrot.png&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;What is currently existing for LSP in python and rql&lt;/h2&gt;
&lt;p&gt;The state is not great in the python ecosystem but not a disaster.
Right now I haven&#39;t been able to find any generic python
implementation of LSP that we could really reuse and integrate.&lt;/p&gt;
&lt;p&gt;There is, right now and to my knowledge, only 2 maintained
implementation of LSP in python. One for python and one for ...
Fortran x)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/palantir/python-language-server&quot;&gt;https://github.com/palantir/python-language-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/hansec/fortran-language-server&quot;&gt;https://github.com/hansec/fortran-language-server&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Palantir&#39;s one makes extensive use of advanced magic code doesn&#39;t seems
really necessary but it is probably of higher quality code since the Fortran
one doesn&#39;t seems very idiomatic but looks much simpler.&lt;/p&gt;
&lt;p&gt;So we&#39;ll ever need to extract the needed code from one of those of
implement our own, not so great.&lt;/p&gt;
&lt;p&gt;On the RQL side, everything that seems to be useful for our current
situation is located in the RQL package that we maintain:
&lt;a href=&quot;https://hg.logilab.org/master/rql&quot;&gt;https://hg.logilab.org/master/rql&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Roadmap&lt;/h2&gt;
&lt;p&gt;After a discussion with Laurent Wouters, a first roadmap looks like
this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;extract the code from either palantir or fortran LSP implementation
  and come with a generic implementation (I&#39;m probably going to do it
  but Laurent told me he his going to take a look too)
  When I&#39;m talking about a generic implementation I&#39;m talking about
  everything listed in the big category of the protocol that isn&#39;t
  related to language features which we don&#39;t really want to rewrite
  again.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once that&#39;s done, start implementing the language features for RQL:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the easiest is the syntax errors detection code, we just need to
  launch to parser on the code and handle the potential errors&lt;/li&gt;
&lt;li&gt;do that with pretty specific red underline&lt;/li&gt;
&lt;li&gt;play with RQL AST to extract the symbols and start doing things like
  codeLens and hover&lt;/li&gt;
&lt;li&gt;much more complex (and for later): autocompletion (we&#39;ll either need
  a demi compiler or to modify the current one for that)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Side note&lt;/h2&gt;
&lt;p&gt;To better understand the motivation behind this move, it is part of the more
global move of drop the &quot;Web&quot; from CubicWeb and replace all the front end
current implementation by reactjs+typescript views. In this context CubicWeb
(or Cubic?) will only serves as a backend provide with which we will talk in... RQL!
Therefor writing and using RQL will be much more important than right now.&lt;/p&gt;</description>
  <dc:date>2019-10-31T14:51-01:00</dc:date>
  <dc:creator>Laurent Peuch</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17069884</guid>
  <title>Hypermedia API with cubicweb-jsonschema</title>
  <link>https://www.cubicweb.org/blogentry/17069884</link>
  <description>&lt;p&gt;This is the second post of a series about &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt;. The &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/blogentry/17066838&quot;&gt;first
post&lt;/a&gt; mainly dealt with JSON Schema representations of CubicWeb entities
along with a brief description of the JSON API. In this second post, I&#39;ll
describe another aspect of the project that aims at building an hypermedia API
by leveraging the &lt;a class=&quot;reference&quot; href=&quot;http://json-schema.org/latest/json-schema-hypermedia.html&quot;&gt;JSON Hyper Schema&lt;/a&gt; specification.&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;hypermedia-apis-and-json-hyper-schema&quot;&gt;
&lt;h3&gt;&lt;a&gt;Hypermedia APIs and JSON Hyper Schema&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Hypermedia API is somehow a synonymous of RESTful API but it makes it clearer
that the API serves &lt;em&gt;hypermedia&lt;/em&gt; responses, i.e. content that helps
discoverability of other resources.&lt;/p&gt;
&lt;p&gt;At the heart of an hypermedia API is the concept of &lt;a class=&quot;reference&quot; href=&quot;https://en.wikipedia.org/wiki/Link_relation&quot;&gt;link relation&lt;/a&gt; which both aims at describing
relationships between resources as well as provinding ways to manipulate them.&lt;/p&gt;
&lt;p&gt;In JSON Hyper Schema terminology, link relations take the form of a collection
of &lt;a class=&quot;reference&quot; href=&quot;http://json-schema.org/latest/json-schema-hypermedia.html#rfc.section.5&quot;&gt;Link Description Objects&lt;/a&gt; gathered into a &lt;tt class=&quot;docutils literal&quot;&gt;links&lt;/tt&gt; property of a JSON
Schema document. These Link Description Objects thus describes relationships
between the &lt;em&gt;instance&lt;/em&gt; described by the JSON Schema document at stake and
other resources; they hold a number of properties that makes relationships
manipulation possible:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;rel&lt;/tt&gt; is the name of the relation, it is usually one of &lt;a class=&quot;reference&quot; href=&quot;https://www.iana.org/assignments/link-relations/link-relations.xhtml&quot;&gt;relation names
registered at IANA&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;href&lt;/tt&gt; indicates the URI of the target of the relation, it may be
templated by a JSON Schema;&lt;/li&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;targetSchema&lt;/tt&gt; is a JSON Schema document (or reference) describing the
target of the link relation;&lt;/li&gt;
&lt;li&gt;&lt;tt class=&quot;docutils literal&quot;&gt;schema&lt;/tt&gt; (recently renamed as &lt;tt class=&quot;docutils literal&quot;&gt;submissionSchema&lt;/tt&gt;) is a JSON Schema
document (or reference) describing what the target of the link expects when
submitting data.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;hypermedia-walkthrough&quot;&gt;
&lt;h3&gt;&lt;a&gt;Hypermedia walkthrough&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In the remaining of the article, I&#39;ll walk through a navigation path that is
made possible by hypermedia controls provided by &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt;. I&#39;ll
continue on the example application described in the &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/blogentry/17066838&quot;&gt;first post&lt;/a&gt; of the
series which schema consists of &lt;cite&gt;Book&lt;/cite&gt;, &lt;cite&gt;Author&lt;/cite&gt; and &lt;cite&gt;Topic&lt;/cite&gt; entity types. In
essence, this walkthrough is typical of what an intelligent client could do
when exposed to the API, i.e. from any resource, discover other resources and
navigate or manipulate them.&lt;/p&gt;
&lt;p&gt;This walkthrough assumes that, given any resource (i.e. something that has a
URL like &lt;tt class=&quot;docutils literal&quot;&gt;/book/1&lt;/tt&gt;), the server would expose data at the main URL when the
client asks for JSON through the &lt;tt class=&quot;docutils literal&quot;&gt;Accept&lt;/tt&gt; header and it would expose the
JSON Schema of the resource at a &lt;tt class=&quot;docutils literal&quot;&gt;schema&lt;/tt&gt; view of the same URL (i.e.
&lt;tt class=&quot;docutils literal&quot;&gt;/book/1/schema&lt;/tt&gt;). This assumption can be regarded as a kind of
client/server coupling, which might go away in later implementation.&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;site-root&quot;&gt;
&lt;h4&gt;&lt;a&gt;Site root&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;While client navigation could start from any resource, we start from the
&lt;em&gt;root&lt;/em&gt; resource and retrieve its schema:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /schema
Accept: application/schema+json

HTTP/1.1 200 OK
Content-Type: application/json

{
    &quot;links&quot;: [
        {
            &quot;href&quot;: &quot;/author/&quot;,
            &quot;rel&quot;: &quot;collection&quot;,
            &quot;schema&quot;: {
                &quot;$ref&quot;: &quot;/author/schema?role=creation&quot;
            },
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/author/schema&quot;
            },
            &quot;title&quot;: &quot;Authors&quot;
        },
        {
            &quot;href&quot;: &quot;/book/&quot;,
            &quot;rel&quot;: &quot;collection&quot;,
            &quot;schema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema?role=creation&quot;
            },
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema&quot;
            },
            &quot;title&quot;: &quot;Books&quot;
        },
        {
            &quot;href&quot;: &quot;/topic/&quot;,
            &quot;rel&quot;: &quot;collection&quot;,
            &quot;schema&quot;: {
                &quot;$ref&quot;: &quot;/topic/schema?role=creation&quot;
            },
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/topic/schema&quot;
            },
            &quot;title&quot;: &quot;Topics&quot;
        }
    ]
}
&lt;/pre&gt;
&lt;p&gt;So at root URL, our application serves a JSON Hyper Schema that only consists
of &lt;tt class=&quot;docutils literal&quot;&gt;links&lt;/tt&gt;. It has no JSON Schema document, which is natural since there&#39;s
usually no data bound to the root resource (think of it as &lt;em&gt;empty rset&lt;/em&gt; in
CubicWeb terminology).&lt;/p&gt;
&lt;p&gt;These links correspond to &lt;em&gt;top-level&lt;/em&gt; entity types, i.e. those that would
appear in the &lt;em&gt;default&lt;/em&gt; startup page of a CubicWeb application. They all have
&lt;tt class=&quot;docutils literal&quot;&gt;&quot;rel&quot;: &quot;collection&quot;&lt;/tt&gt; relation name (this comes from &lt;a class=&quot;reference&quot; href=&quot;https://tools.ietf.org/html/rfc6573&quot;&gt;RFC6573&lt;/a&gt;) as their
target is a collection of entities. We also have &lt;tt class=&quot;docutils literal&quot;&gt;schema&lt;/tt&gt; and
&lt;tt class=&quot;docutils literal&quot;&gt;targetSchema&lt;/tt&gt; properties.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;links-as-actions&quot;&gt;
&lt;h4&gt;&lt;a&gt;Links as actions&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;So let&#39;s pick one of these links, the &lt;tt class=&quot;docutils literal&quot;&gt;Books&lt;/tt&gt; link. We can either just
follow the link URI &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;href=&quot;/book/&quot;&lt;/span&gt;&lt;/tt&gt; using a &lt;tt class=&quot;docutils literal&quot;&gt;GET&lt;/tt&gt; request, but what if we
wanted to create a new book? We&#39;d need to perform a &lt;tt class=&quot;docutils literal&quot;&gt;POST&lt;/tt&gt; request at
&lt;tt class=&quot;docutils literal&quot;&gt;href&lt;/tt&gt; URI with a body that conforms to the JSON Schema of &lt;tt class=&quot;docutils literal&quot;&gt;schema&lt;/tt&gt;
property. So let&#39;s first retrieve this schema:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /book/schema?role=creation
Accept: application/schema+json

HTTP/1.1 200 OK
Content-Length: 836
Content-Type: application/json
Date: Tue, 04 Apr 2017 09:46:53 GMT
Server: waitress

{
    &quot;$ref&quot;: &quot;#/definitions/Book&quot;,
    &quot;definitions&quot;: {
        &quot;Book&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;author&quot;: {
                    &quot;items&quot;: {
                        &quot;oneOf&quot;: [
                            {
                                &quot;enum&quot;: [
                                    &quot;856&quot;
                                ],
                                &quot;title&quot;: &quot;Ernest Hemingway&quot;
                            },
                            {
                                &quot;enum&quot;: [
                                    &quot;855&quot;
                                ],
                                &quot;title&quot;: &quot;Victor Hugo&quot;
                            }
                        ],
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;maxItems&quot;: 1,
                    &quot;minItems&quot;: 1,
                    &quot;title&quot;: &quot;author&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;publication_date&quot;: {
                    &quot;format&quot;: &quot;date-time&quot;,
                    &quot;title&quot;: &quot;publication date&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;title&quot;: {
                    &quot;title&quot;: &quot;title&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;required&quot;: [
                &quot;title&quot;,
                &quot;publication_date&quot;
            ],
            &quot;title&quot;: &quot;Book&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;(This is essentially the same schema that we had in the last example of the
&lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/blogentry/17066838&quot;&gt;first post&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;With this we may form a &lt;tt class=&quot;docutils literal&quot;&gt;POST&lt;/tt&gt; request with a JSON document as body that
conforms to this schema, but how do we know that we can actually send the
request? Hypermedia link relations do not provide any information for this.
Instead, we rely on the underlying protocol (HTTP) and on the server to
advertize its capabilities. This means we need to fetch the target ressource
and inspect the &lt;tt class=&quot;docutils literal&quot;&gt;Allow&lt;/tt&gt; header in the response. Most of the times, we would
already have fetched the resource (verb &lt;tt class=&quot;docutils literal&quot;&gt;GET&lt;/tt&gt;) so these headers would be
readily available. But in this case, we are on the root resource and we have
not fetched targets of the links, so we use a &lt;tt class=&quot;docutils literal&quot;&gt;HEAD&lt;/tt&gt; request:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
HEAD /book/

HTTP/1.1 200 OK
Allow: GET, POST
&lt;/pre&gt;
&lt;p&gt;Verbs listed in this &lt;tt class=&quot;docutils literal&quot;&gt;Allow&lt;/tt&gt; header just describe what actions we are
allowed to perform on the resource. Under the hood, this is determined by
permissions lookup (i.e. &quot;read&quot; permission matches with &lt;tt class=&quot;docutils literal&quot;&gt;GET&lt;/tt&gt; verb, &quot;add&quot;
permission matches with &lt;tt class=&quot;docutils literal&quot;&gt;POST&lt;/tt&gt; verb and so on).&lt;/p&gt;
&lt;p&gt;So we can create a &lt;cite&gt;Book&lt;/cite&gt;!&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
POST /book/
Accept: application/json

{&quot;title&quot;: &quot;L&#39;homme qui rit&quot;, &quot;author&quot;: [&quot;855&quot;], &quot;publication_date&quot;: &quot;1869-04-01&quot;}

HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://localhost:6543/Book/859

{
    &quot;author&quot;: [
        &quot;Victor Hugo&quot;
    ],
    &quot;publication_date&quot;: &quot;1869-04-01&quot;,
    &quot;title&quot;: &quot;L&#39;homme qui rit&quot;
}
&lt;/pre&gt;
&lt;p&gt;What&#39;s important in this response is the &lt;tt class=&quot;docutils literal&quot;&gt;Location&lt;/tt&gt; header which indicates
where our new resource lives. Our intelligent client can then proceed with its
navigation using this information.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;from-collection-to-items&quot;&gt;
&lt;h4&gt;&lt;a&gt;From collection to items&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Now that we have added a new book, let&#39;s step back and use our &lt;em&gt;books&lt;/em&gt; link to
retrieve data (verb &lt;tt class=&quot;docutils literal&quot;&gt;GET&lt;/tt&gt;):&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /book/
Accept: application/json

HTTP/1.1 200 OK
Allow: GET, POST
Content-Type: application/json

[
    {
        &quot;id&quot;: &quot;859&quot;,
        &quot;title&quot;: &quot;L&#39;homme qui rit&quot;
    },
    {
        &quot;id&quot;: &quot;858&quot;,
        &quot;title&quot;: &quot;The Old Man and the Sea&quot;
    },
]
&lt;/pre&gt;
&lt;p&gt;which, as always, needs to be completed by a JSON Schema:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /book/schema
Accept: application/schema+json


HTTP/1.1 200 OK
Content-Type: application/json

{
    &quot;$ref&quot;: &quot;#/definitions/Book_plural&quot;,
    &quot;definitions&quot;: {
        &quot;Book_plural&quot;: {
            &quot;items&quot;: {
                &quot;properties&quot;: {
                    &quot;id&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;title&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    }
                },
                &quot;type&quot;: &quot;object&quot;
            },
            &quot;title&quot;: &quot;Books&quot;,
            &quot;type&quot;: &quot;array&quot;
        }
    },
    &quot;links&quot;: [
        {
            &quot;href&quot;: &quot;/book/&quot;,
            &quot;rel&quot;: &quot;collection&quot;,
            &quot;schema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema?role=creation&quot;
            },
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema&quot;
            },
            &quot;title&quot;: &quot;Books&quot;
        },
        {
            &quot;href&quot;: &quot;/book/{id}&quot;,
            &quot;rel&quot;: &quot;item&quot;,
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema?role=view&quot;
            },
            &quot;title&quot;: &quot;Book&quot;
        }
    ]
}
&lt;/pre&gt;
&lt;p&gt;Consider the last item of &lt;tt class=&quot;docutils literal&quot;&gt;links&lt;/tt&gt; in the above schema. It has a &lt;tt class=&quot;docutils literal&quot;&gt;&quot;rel&quot;:
&quot;item&quot;&lt;/tt&gt; property which indicates how to access items of the collection;
its &lt;tt class=&quot;docutils literal&quot;&gt;href&lt;/tt&gt; property is a &lt;a class=&quot;reference&quot; href=&quot;https://tools.ietf.org/html/rfc6570&quot;&gt;templated URI&lt;/a&gt; which can be expanded using
instance data and schema (here we only have a single &lt;tt class=&quot;docutils literal&quot;&gt;id&lt;/tt&gt; template
variable).&lt;/p&gt;
&lt;p&gt;So our client may navigate to the first item of the collection (&lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;id=&quot;859&quot;&lt;/span&gt;&lt;/tt&gt;)
at &lt;tt class=&quot;docutils literal&quot;&gt;/book/859&lt;/tt&gt; URI, and retrieve resource data:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /book/859
Accept: application/json

HTTP/1.1 200 OK
Allow: GET, PUT, DELETE
Content-Type: application/json

{
    &quot;author&quot;: [
        &quot;Victor Hugo&quot;
    ],
    &quot;publication_date&quot;: &quot;1869-04-01T00:00:00&quot;,
    &quot;title&quot;: &quot;L&#39;homme qui rit&quot;
}
&lt;/pre&gt;
&lt;p&gt;and schema:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /book/859/schema
Accept: application/schema+json

HTTP/1.1 200 OK
Content-Type: application/json

{
    &quot;$ref&quot;: &quot;#/definitions/Book&quot;,
    &quot;definitions&quot;: {
        &quot;Book&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;author&quot;: {
                    &quot;items&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;title&quot;: &quot;author&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;publication_date&quot;: {
                    &quot;format&quot;: &quot;date-time&quot;,
                    &quot;title&quot;: &quot;publication date&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;title&quot;: {
                    &quot;title&quot;: &quot;title&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;topics&quot;: {
                    &quot;items&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;title&quot;: &quot;topics&quot;,
                    &quot;type&quot;: &quot;array&quot;
                }
            },
            &quot;title&quot;: &quot;Book&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    },
    &quot;links&quot;: [
        {
            &quot;href&quot;: &quot;/book/&quot;,
            &quot;rel&quot;: &quot;up&quot;,
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/book/schema&quot;
            },
            &quot;title&quot;: &quot;Book_plural&quot;
        },
        {
            &quot;href&quot;: &quot;/book/859/&quot;,
            &quot;rel&quot;: &quot;self&quot;,
            &quot;schema&quot;: {
                &quot;$ref&quot;: &quot;/book/859/schema?role=edition&quot;
            },
            &quot;targetSchema&quot;: {
                &quot;$ref&quot;: &quot;/book/859/schema?role=view&quot;
            },
            &quot;title&quot;: &quot;Book #859&quot;
        }
    ]
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;entity-resource&quot;&gt;
&lt;h4&gt;&lt;a&gt;Entity resource&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The resource obtained above as an item of a collection is actually an entity.
Notice the &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;rel=&quot;self&quot;&lt;/span&gt;&lt;/tt&gt; link. It indicates &lt;em&gt;how&lt;/em&gt; to manipulate the current
resource (i.e. at which URI, using a given schema depending on what actions we
want to perform). Still this link does not indicate &lt;em&gt;what&lt;/em&gt; actions may be
performed. This indication is found in the &lt;tt class=&quot;docutils literal&quot;&gt;Allow&lt;/tt&gt; header of the data
response above:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
Allow: GET, PUT, DELETE
&lt;/pre&gt;
&lt;p&gt;With these information bits, our intelligent client is able to, for instance,
form a request to &lt;em&gt;delete&lt;/em&gt; the resource. On the other hand, the action to
update the resource (which is allowed because of the presence of &lt;tt class=&quot;docutils literal&quot;&gt;PUT&lt;/tt&gt; in
&lt;tt class=&quot;docutils literal&quot;&gt;Allow&lt;/tt&gt; header, per HTTP semantics) would take the form of a request which
body conforms to the JSON Schema pointed at by the &lt;tt class=&quot;docutils literal&quot;&gt;schema&lt;/tt&gt; property of the
link.&lt;/p&gt;
&lt;p&gt;Also note the &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;rel=&quot;up&quot;&lt;/span&gt;&lt;/tt&gt; link which makes it possible to navigate to the
collection of books.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;conclusions&quot;&gt;
&lt;h3&gt;&lt;a&gt;Conclusions&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This post introduced the main hypermedia capabilities of
&lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt;, built on top of the &lt;a class=&quot;reference&quot; href=&quot;http://json-schema.org/latest/json-schema-hypermedia.html&quot;&gt;JSON Hyper Schema&lt;/a&gt;
specification. The resulting Hypermedia API makes it possible for an
intelligent client to navigate through hypermedia resources and manipulate
them by using both link relation semantics and HTTP verbs.&lt;/p&gt;
&lt;p&gt;In the next post, I&#39;ll deal with relationships description and manipulation
both in terms of API (endpoints) and hypermedia representation.&lt;/p&gt;
&lt;/div&gt;</description>
  <dc:date>2017-04-04T12:20-01:00</dc:date>
  <dc:creator>Denis Laxalde</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/17066838</guid>
  <title>Introducing cubicweb-jsonschema</title>
  <link>https://www.cubicweb.org/blogentry/17066838</link>
  <description>&lt;p&gt;This is the first post of a series introducing the &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt;
project that is currently under development at Logilab. In this post, I&#39;ll
first introduce the general goals of the project and then present in more
details two aspects about data models (the connection between Yams and JSON
schema in particular) and the basic features of the API. This post does not
always present how things work in the current implementation but rather how
they should.&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;goals-of-cubicweb-jsonschema&quot;&gt;
&lt;h3&gt;&lt;a&gt;Goals of cubicweb-jsonschema&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;From a high level point of view, &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt; addresses mainly two
interconnected aspects. One related to &lt;em&gt;modelling&lt;/em&gt; for client-side development
of user interfaces to CubicWeb applications while the other one concerns the
HTTP API.&lt;/p&gt;
&lt;p&gt;As far as &lt;em&gt;modelling&lt;/em&gt; is concerned, cubicweb-jsonschema essentially aims at
providing a transformation mechanism between a Yams schema and JSON Schema
that is both automatic and extensible. This means that we can ultimately
expect that Yams definitions alone would sufficient to have generated JSON
schema definitions that would consistent enough to build an UI, pretty much as
it is currently with the automatic web UI in CubicWeb. A corollary of this
goal is that we want JSON schema definitions to match their context of usage,
meaning that a JSON schema definition would not be the same in the context of
viewing, editing or relationships manipulations.&lt;/p&gt;
&lt;p&gt;In terms of &lt;em&gt;API&lt;/em&gt;, cubicweb-jsonschema essentially aims at providing an HTTP
API to manipulate entities based on their JSON Schema definitions.&lt;/p&gt;
&lt;p&gt;Finally, the ultimate goal is to expose an hypermedia API for a CubicWeb
application in order to be able to ultimately build an intelligent client. For
this we&#39;ll build upon the &lt;a class=&quot;reference&quot; href=&quot;http://json-schema.org/latest/json-schema-hypermedia.html&quot;&gt;JSON Hyper-Schema&lt;/a&gt; specification. This aspect will
be discussed in a later post.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;basic-usage-as-an-http-api-library&quot;&gt;
&lt;h3&gt;&lt;a&gt;Basic usage as an HTTP API library&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Consider a simple case where one wants to manipulate entities of type &lt;cite&gt;Author&lt;/cite&gt;
described by the following Yams schema definition:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
class Author(EntityType):
    name = String(required=True)
&lt;/pre&gt;
&lt;p&gt;With cubicweb-jsonschema one can get JSON Schema for this entity type in at
different contexts such: &lt;em&gt;view&lt;/em&gt;, &lt;em&gt;creation&lt;/em&gt; or &lt;em&gt;edition&lt;/em&gt;. For instance:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;in a &lt;em&gt;view&lt;/em&gt; context, the JSON Schema will be:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;$ref&quot;: &quot;#/definitions/Author&quot;,
    &quot;definitions&quot;: {
        &quot;Author&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;name&quot;: {
                    &quot;title&quot;: &quot;name&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;title&quot;: &quot;Author&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;whereas in &lt;em&gt;creation&lt;/em&gt; context, it&#39;ll be:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;$ref&quot;: &quot;#/definitions/Author&quot;,
    &quot;definitions&quot;: {
        &quot;Author&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;name&quot;: {
                    &quot;title&quot;: &quot;name&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;required&quot;: [
                &quot;name&quot;
            ],
            &quot;title&quot;: &quot;Author&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;(notice, the &lt;tt class=&quot;docutils literal&quot;&gt;required&lt;/tt&gt; keyword listing &lt;tt class=&quot;docutils literal&quot;&gt;name&lt;/tt&gt; property).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Such JSON Schema definitions are automatically generated from Yams
definitions. In addition, cubicweb-jsonschema exposes some endpoints for basic
CRUD operations on resources through an HTTP (JSON) API. From the client point
of view, requests on these endpoints are of course expected to match JSON
Schema definitions.
Some examples:&lt;/p&gt;
&lt;p&gt;Get an author resource:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
GET /author/855
Accept:application/json

HTTP/1.1 200 OK
Content-Type: application/json
{&quot;name&quot;: &quot;Ernest Hemingway&quot;}
&lt;/pre&gt;
&lt;p&gt;Update an author:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
PATCH /author/855
Accept:application/json
Content-Type: application/json
{&quot;name&quot;: &quot;Ernest Miller Hemingway&quot;}

HTTP/1.1 200 OK
Location: /author/855/
Content-Type: application/json
{&quot;name&quot;: &quot;Ernest Miller Hemingway&quot;}
&lt;/pre&gt;
&lt;p&gt;Create an author:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
POST /author
Accept:application/json
Content-Type: application/json
{&quot;name&quot;: &quot;Victor Hugo&quot;}

HTTP/1.1 201 Created
Content-Type: application/json
Location: /Author/858
{&quot;name&quot;: &quot;Victor Hugo&quot;}
&lt;/pre&gt;
&lt;p&gt;Delete an author:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
DELETE /author/858

HTTP/1.1 204 No Content
&lt;/pre&gt;
&lt;p&gt;Now if the client sends invalid input with respect to the schema, they&#39;ll get
an error:&lt;/p&gt;
&lt;p&gt;(We provide a wrong &lt;tt class=&quot;docutils literal&quot;&gt;born&lt;/tt&gt; property in request body.)&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
PATCH /author/855
Accept:application/json
Content-Type: application/json
{&quot;born&quot;: &quot;1899-07-21&quot;}

HTTP/1.1 400 Bad Request
Content-Type: application/json

{
    &quot;errors&quot;: [
        {
            &quot;details&quot;: &quot;Additional properties are not allowed (&#39;born&#39; was unexpected)&quot;,
            &quot;status&quot;: 422
        }
    ]
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;from-yams-model-to-json-schema-definitions&quot;&gt;
&lt;h3&gt;&lt;a&gt;From Yams model to JSON Schema definitions&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The example above illustrates automatic generation of JSON Schema documents
based on Yams schema definitions. These documents are expected to help
developping views and forms for a web client. Clearly, we expect that
cubicweb-jsonschema serves JSON Schema documents for viewing and editing
entities as &lt;cite&gt;cubicweb.web&lt;/cite&gt; serves HTML documents for the same purposes. The
underlying logic for JSON Schema generation is currently heavily inspired by
the logic of &lt;a class=&quot;reference&quot; href=&quot;http://cubicweb.readthedocs.io/en/latest/book/devweb/views/primary/&quot;&gt;primary view&lt;/a&gt; and &lt;a class=&quot;reference&quot; href=&quot;http://cubicweb.readthedocs.io/en/latest/book/devweb/edition/form/#module-cubicweb.web.views.autoform&quot;&gt;automatic entity form&lt;/a&gt; as they exists in
&lt;cite&gt;cubicweb.web.views&lt;/cite&gt;. That is: the Yams schema is introspected to determine
how properties should be generated and any additionnal control over this can
be performed through &lt;a class=&quot;reference&quot; href=&quot;http://cubicweb.readthedocs.io/en/latest/book/devweb/rtags/#the-uicfg-module&quot;&gt;uicfg&lt;/a&gt; declarations &lt;a class=&quot;footnote-reference&quot; href=&quot;#uicfg-note&quot; id=&quot;id1&quot;&gt;[1]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To illustrate let&#39;s consider the following schema definitions which:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
class Book(EntityType):
    title = String(required=True)
    publication_date = Datetime(required=True)

class Illustration(EntityType):
    data = Bytes(required=True)

class illustrates(RelationDefinition):
    subject = &#39;Illustration&#39;
    object = &#39;Book&#39;
    cardinality = &#39;1*&#39;
    composite = &#39;object&#39;
    inlined = True

class Author(EntityType):
    name = String(required=True)

class author(RelationDefinition):
    subject = &#39;Book&#39;
    object = &#39;Author&#39;
    cardinality = &#39;1*&#39;

class Topic(EntityType):
    name = String(required=True)

class topics(RelationDefinition):
    subject = &#39;Book&#39;
    object = &#39;Topic&#39;
    cardinality = &#39;**&#39;
&lt;/pre&gt;
&lt;p&gt;and consider, as before, JSON Schema documents in different contexts for the
the &lt;tt class=&quot;docutils literal&quot;&gt;Book&lt;/tt&gt; entity type:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;in &lt;em&gt;view&lt;/em&gt; context:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;$ref&quot;: &quot;#/definitions/Book&quot;,
    &quot;definitions&quot;: {
        &quot;Book&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;author&quot;: {
                    &quot;items&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;title&quot;: &quot;author&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;publication_date&quot;: {
                    &quot;format&quot;: &quot;date-time&quot;,
                    &quot;title&quot;: &quot;publication_date&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;title&quot;: {
                    &quot;title&quot;: &quot;title&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;topics&quot;: {
                    &quot;items&quot;: {
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;title&quot;: &quot;topics&quot;,
                    &quot;type&quot;: &quot;array&quot;
                }
            },
            &quot;title&quot;: &quot;Book&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;We have a single &lt;tt class=&quot;docutils literal&quot;&gt;Book&lt;/tt&gt; definition in this document, in which we find
attributes defined in the Yams schema (&lt;cite&gt;title&lt;/cite&gt; and &lt;cite&gt;publication_date&lt;/cite&gt;). We
also find the two relations where &lt;cite&gt;Book&lt;/cite&gt; is involved: &lt;cite&gt;topics&lt;/cite&gt; and
&lt;cite&gt;author&lt;/cite&gt;, both appearing as a single array of &quot;string&quot; items. The &lt;cite&gt;author&lt;/cite&gt;
relationship appears like that because it is mandatory but not composite.
On the other hand, the &lt;cite&gt;topics&lt;/cite&gt; relationship has the following uicfg rule:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
uicfg.primaryview_section.tag_subject_of((&#39;Book&#39;, &#39;topics&#39;, &#39;*&#39;), &#39;attributes&#39;)
&lt;/pre&gt;
&lt;p&gt;so that it&#39;s definition appears embedded in the document of &lt;tt class=&quot;docutils literal&quot;&gt;Book&lt;/tt&gt;
definition.&lt;/p&gt;
&lt;p&gt;A typical JSON representation of a &lt;tt class=&quot;docutils literal&quot;&gt;Book&lt;/tt&gt; entity would be:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;author&quot;: [
        &quot;Ernest Miller Hemingway&quot;
    ],
    &quot;title&quot;: &quot;The Old Man and the Sea&quot;,
    &quot;topics&quot;: [
        &quot;sword fish&quot;,
        &quot;cuba&quot;
    ]
}
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class=&quot;first&quot;&gt;in &lt;em&gt;creation&lt;/em&gt; context:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;$ref&quot;: &quot;#/definitions/Book&quot;,
    &quot;definitions&quot;: {
        &quot;Book&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;author&quot;: {
                    &quot;items&quot;: {
                        &quot;oneOf&quot;: [
                            {
                                &quot;enum&quot;: [
                                    &quot;855&quot;
                                ],
                                &quot;title&quot;: &quot;Ernest Miller Hemingway&quot;
                            },
                            {
                                &quot;enum&quot;: [
                                    &quot;857&quot;
                                ],
                                &quot;title&quot;: &quot;Victor Hugo&quot;
                            }
                        ],
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;maxItems&quot;: 1,
                    &quot;minItems&quot;: 1,
                    &quot;title&quot;: &quot;author&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;publication_date&quot;: {
                    &quot;format&quot;: &quot;date-time&quot;,
                    &quot;title&quot;: &quot;publication_date&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;title&quot;: {
                    &quot;title&quot;: &quot;title&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;required&quot;: [
                &quot;title&quot;,
                &quot;publication_date&quot;
            ],
            &quot;title&quot;: &quot;Book&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;notice the differences, we now only have attributes and required relationships
(&lt;tt class=&quot;docutils literal&quot;&gt;author&lt;/tt&gt;) in this schema and we have the &lt;cite&gt;required&lt;/cite&gt; listing mandatory
attributes; the &lt;cite&gt;author&lt;/cite&gt; property is represented as an array which items
consist of pre-existing objects of the &lt;cite&gt;author&lt;/cite&gt; relationship (namely
&lt;tt class=&quot;docutils literal&quot;&gt;Author&lt;/tt&gt; entities).&lt;/p&gt;
&lt;p&gt;Now assume we add the following uicfg declaration:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
uicfg.autoform_section.tag_object_of((&#39;*&#39;, &#39;illustrates&#39;, &#39;Book&#39;), &#39;main&#39;, &#39;inlined&#39;)
&lt;/pre&gt;
&lt;p&gt;the JSON Schema for &lt;em&gt;creation&lt;/em&gt; context will be:&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
{
    &quot;$ref&quot;: &quot;#/definitions/Book&quot;,
    &quot;definitions&quot;: {
        &quot;Book&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;author&quot;: {
                    &quot;items&quot;: {
                        &quot;oneOf&quot;: [
                            {
                                &quot;enum&quot;: [
                                    &quot;855&quot;
                                ],
                                &quot;title&quot;: &quot;Ernest Miller Hemingway&quot;
                            },
                            {
                                &quot;enum&quot;: [
                                    &quot;857&quot;
                                ],
                                &quot;title&quot;: &quot;Victor Hugo&quot;
                            }
                        ],
                        &quot;type&quot;: &quot;string&quot;
                    },
                    &quot;maxItems&quot;: 1,
                    &quot;minItems&quot;: 1,
                    &quot;title&quot;: &quot;author&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;illustrates&quot;: {
                    &quot;items&quot;: {
                        &quot;$ref&quot;: &quot;#/definitions/Illustration&quot;
                    },
                    &quot;title&quot;: &quot;illustrates_object&quot;,
                    &quot;type&quot;: &quot;array&quot;
                },
                &quot;publication_date&quot;: {
                    &quot;format&quot;: &quot;date-time&quot;,
                    &quot;title&quot;: &quot;publication_date&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                &quot;title&quot;: {
                    &quot;title&quot;: &quot;title&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;required&quot;: [
                &quot;title&quot;,
                &quot;publication_date&quot;
            ],
            &quot;title&quot;: &quot;Book&quot;,
            &quot;type&quot;: &quot;object&quot;
        },
        &quot;Illustration&quot;: {
            &quot;additionalProperties&quot;: false,
            &quot;properties&quot;: {
                &quot;data&quot;: {
                    &quot;format&quot;: &quot;data-url&quot;,
                    &quot;title&quot;: &quot;data&quot;,
                    &quot;type&quot;: &quot;string&quot;
                }
            },
            &quot;required&quot;: [
                &quot;data&quot;
            ],
            &quot;title&quot;: &quot;Illustration&quot;,
            &quot;type&quot;: &quot;object&quot;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;We now have an additional &lt;tt class=&quot;docutils literal&quot;&gt;illustrates&lt;/tt&gt; property modelled as an array of
&lt;tt class=&quot;docutils literal&quot;&gt;#/definitions/Illustration&lt;/tt&gt;, the later also added the the document as
an additional &lt;em&gt;definition&lt;/em&gt; entry.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;conclusion&quot;&gt;
&lt;h3&gt;&lt;a&gt;Conclusion&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This post illustrated how a basic (CRUD) HTTP API based on JSON Schema could
be build for a CubicWeb application using &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-jsonschema/&quot;&gt;cubicweb-jsonschema&lt;/a&gt;. We have seen
a couple of details on JSON Schema generation and how it can be controlled.
Feel free to comment and provide feedback on this feature set as well as
open the discussion with more use cases.&lt;/p&gt;
&lt;p&gt;Next time, we&#39;ll discuss how &lt;em&gt;hypermedia&lt;/em&gt; controls can be added the HTTP API
that cubicweb-jsonschema provides.&lt;/p&gt;
&lt;table class=&quot;docutils footnote&quot; frame=&quot;void&quot; id=&quot;uicfg-note&quot; rules=&quot;none&quot;&gt;
&lt;colgroup&gt;&lt;col class=&quot;label&quot;/&gt;&lt;col/&gt;&lt;/colgroup&gt;
&lt;tbody valign=&quot;top&quot;&gt;
&lt;tr&gt;&lt;td class=&quot;label&quot;&gt;&lt;a class=&quot;fn-backref&quot; href=&quot;#id1&quot;&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;this choice is essentially driven by simplicity and conformance
when the existing behavior to help migration of existing applications.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;</description>
  <dc:date>2017-03-23T08:57-01:00</dc:date>
  <dc:creator>Denis Laxalde</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/15338089</guid>
  <title>Monitor all the things! ... and early too!</title>
  <link>https://www.cubicweb.org/blogentry/15338089</link>
  <description>&lt;p&gt;Following the &quot;release often, release early&quot; mantra, I thought it
might be a good idea to apply it to monitoring on one of our client
projects. So right from the demo stage where we deliver a new version
every few weeks (and sometimes every few days), we setup some
monitoring.&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338085/raw/66511658.jpg&quot; src=&quot;https://www.cubicweb.org/file/15338085/raw/66511658.jpg&quot;/&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-performance&quot;&gt;
&lt;h3&gt;&lt;a&gt;Monitoring performance&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The project is an application built with the CubicWeb platform, with
some ElasticSearch for indexing and searching. As with any complex
stack, there are a great number of places where one could monitor
performance metrics.&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338628/raw/Screenshot_2016-09-16_12-19-21.png&quot; src=&quot;https://www.cubicweb.org/file/15338628/raw/Screenshot_2016-09-16_12-19-21.png&quot;/&gt;
&lt;p&gt;Here are a few things we have decided to monitor, and with what tools.&lt;/p&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-cubicweb&quot;&gt;
&lt;h4&gt;&lt;a&gt;Monitoring CubicWeb&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;To monitor our running Python code, we have decided to use &lt;a class=&quot;reference&quot; href=&quot;https://github.com/etsy/statsd&quot;&gt;statsd&lt;/a&gt;, since it is already built into
CubicWeb&#39;s core. Out of the box, you can configure a
statsd server address in your &lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;all-in-one.conf&lt;/span&gt;&lt;/tt&gt; configuration. That will
send out some timing statistics about some core functions.&lt;/p&gt;
&lt;p&gt;The statsd server (there a numerous implementations, we use a simple
one : &lt;a class=&quot;reference&quot; href=&quot;https://github.com/sivy/pystatsd&quot;&gt;python-pystatsd&lt;/a&gt;) gets the raw metrics and outputs
them to &lt;a class=&quot;reference&quot; href=&quot;https://github.com/graphite-project/carbon&quot;&gt;carbon&lt;/a&gt; which
stores the time series data in &lt;a class=&quot;reference&quot; href=&quot;https://github.com/graphite-project/whisper&quot;&gt;whisper&lt;/a&gt; files (which can be
swapped out for a different technology if need be).&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338392/raw/Screenshot_2016-09-16_11-56-44.png&quot; src=&quot;https://www.cubicweb.org/file/15338392/raw/Screenshot_2016-09-16_11-56-44.png&quot;/&gt;
&lt;p&gt;If we are curious about a particular function or view that might be
taking too long to generate or slow down the user experience, we can
just add the &lt;a class=&quot;reference&quot; href=&quot;https://hg.logilab.org/master/cubicweb/file/tip/cubicweb/statsd_logger.py#l47&quot;&gt;@statsd_timeit&lt;/a&gt;
decorator there. Done. It&#39;s monitored.&lt;/p&gt;
&lt;p&gt;statsd monitoring is a fire-and-forget UDP type of monitoring, it
should not have any impact on the performance of what you are
monitoring.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-apache&quot;&gt;
&lt;h4&gt;&lt;a&gt;Monitoring Apache&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Simply enough we re-use the statsd approach by plugging in &lt;a class=&quot;reference&quot; href=&quot;https://github.com/jib/mod_statsd&quot;&gt;an apache
module&lt;/a&gt; to time the HTTP responses sent back by apache. With &lt;a class=&quot;reference&quot; href=&quot;https://github.com/zebrafishlabs/nginx-statsd&quot;&gt;nginx&lt;/a&gt;
and &lt;a class=&quot;reference&quot; href=&quot;https://github.com/jib/libvmod-statsd&quot;&gt;varnish&lt;/a&gt;, this is also really easy.&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338407/raw/Screenshot_2016-09-16_11-56-54.png&quot; src=&quot;https://www.cubicweb.org/file/15338407/raw/Screenshot_2016-09-16_11-56-54.png&quot;/&gt;
&lt;p&gt;One of the nice things about this part is that we can then get
graphs of errors since we will differentiate OK 200 type codes from
500 type codes (&lt;a class=&quot;reference&quot; href=&quot;https://en.wikipedia.org/wiki/List_of_HTTP_status_codes&quot;&gt;HTTP codes&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-elasticsearch&quot;&gt;
&lt;h4&gt;&lt;a&gt;Monitoring ElasticSearch&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;ElasticSearch comes with some metrics in GET /_stats endpoint, the
same goes for individual nodes, individual indices and even at cluster
level. Some popular tools can be installed through the ElasticSearch
plugin system or with Kibana (plugin system there too).&lt;/p&gt;
&lt;p&gt;We decided on a different approach that fitted well with our other
tools (and demonstrates their flexibility!) : pull stats out of
ElasticSearch with &lt;a class=&quot;reference&quot; href=&quot;https://saltstack.com/community/&quot;&gt;SaltStack&lt;/a&gt;,
push them to Carbon, pull them out with Graphite and display
them in &lt;a class=&quot;reference&quot; href=&quot;http://grafana.org/&quot;&gt;Grafana&lt;/a&gt; (next to our other metrics).&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338399/raw/Screenshot_2016-09-16_11-56-34.png&quot; src=&quot;https://www.cubicweb.org/file/15338399/raw/Screenshot_2016-09-16_11-56-34.png&quot;/&gt;
&lt;p&gt;On the SaltStack side, we wrote a two line execution module (elasticsearch.py)&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
import requests
def stats():
    return request.get(&#39;http://localhost:9200/_stats&#39;).json()
&lt;/pre&gt;
&lt;p&gt;This gets shipped using the custom execution modules mechanism
(&lt;cite&gt;_modules&lt;/cite&gt; and &lt;cite&gt;saltutils.sync_modules&lt;/cite&gt;), and is executed every minute
(or less) in the &lt;a class=&quot;reference&quot; href=&quot;https://docs.saltstack.com/en/latest/topics/jobs/#scheduling-jobs&quot;&gt;salt scheduler&lt;/a&gt;. The
resulting dictionary is fed to the carbon returner that is configured
to talk to a carbon server somewhere nearby.&lt;/p&gt;
&lt;pre class=&quot;literal-block&quot;&gt;
# salt demohost elasticsearch.stats
[snip]
  { &quot;indextime_inmillis&quot; : 30,
[snip]
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-web-metrics&quot;&gt;
&lt;h3&gt;&lt;a&gt;Monitoring web metrics&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To evaluate parts of the performance of a web page we can look at some
metrics such as the number of assets the browser will need to
download, the size of the assets (js, css, images, etc) and even
things such as the number of subdomains used to deliver assets. You
can take a look at such metrics in most developer tools available in
the browser, but we want to graph this over time. A nice tool for this
is &lt;a class=&quot;reference&quot; href=&quot;https://www.sitespeed.io/&quot;&gt;sitespeed.io&lt;/a&gt; (written in javascript
with &lt;a class=&quot;reference&quot; href=&quot;https://en.wikipedia.org/wiki/PhantomJS&quot;&gt;phantomjs&lt;/a&gt;). Out of the box, it has a graphite outputter so
we just have to add &lt;cite&gt;--graphiteHost FQDN&lt;/cite&gt;. &lt;cite&gt;sitespeed.io&lt;/cite&gt; even
&lt;a class=&quot;reference&quot; href=&quot;https://www.sitespeed.io/documentation/graphs/&quot;&gt;recommends using grafana&lt;/a&gt; to visualize the
results and publishes some example dashboards that can be adapted to
your needs.&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338109/raw/sitespeed-logo-2c.png&quot; src=&quot;https://www.cubicweb.org/file/15338109/raw/sitespeed-logo-2c.png&quot;/&gt;
&lt;p&gt;The sitespeed.io command is configured and run by salt using pillars
and its scheduler.&lt;/p&gt;
&lt;p&gt;We will have to take a look at using &lt;a class=&quot;reference&quot; href=&quot;https://github.com/sitespeedio/jenkins.sitespeed.io&quot;&gt;their jenkins plugin&lt;/a&gt; with our
jenkins continuous integration instance.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-crashes-errors-bugs&quot;&gt;
&lt;h3&gt;&lt;a&gt;Monitoring crashes / errors / bugs&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Applications will have bugs (in particular when released often to get
a client to validate some design choices early). Level 0 is having
your client calling you up saying the application has crashed. The
next level is watching some log somewhere to see those errors pop
up. The next level is centralised logs on which you can monitor the
numerous pieces of your application (rsyslog over UDP helps here,
&lt;a class=&quot;reference&quot; href=&quot;https://www.graylog.org/&quot;&gt;graylog&lt;/a&gt; might be a good solution for
visualisation).&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338139/raw/Screenshot_2016-09-16_11-30-53.png&quot; src=&quot;https://www.cubicweb.org/file/15338139/raw/Screenshot_2016-09-16_11-30-53.png&quot;/&gt;
&lt;p&gt;When it starts getting useful and usable is when your bugs get
reported with some rich context. That&#39;s when using &lt;a class=&quot;reference&quot; href=&quot;https://www.getsentry.com/&quot;&gt;sentry&lt;/a&gt; gets in. It&#39;s &lt;a class=&quot;reference&quot; href=&quot;https://github.com/getsentry/sentry&quot;&gt;free software developed on github&lt;/a&gt; (although the website does not
really show that) and it is written in python, so it was a good match
for our culture. And it is pretty awesome too.&lt;/p&gt;
&lt;p&gt;We plug sentry into our WSGI pipeline (thanks to &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-pyramid&quot;&gt;cubicweb-pyramid&lt;/a&gt;) by installing
and configuring the sentry cube : &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/project/cubicweb-sentry&quot;&gt;cubicweb-sentry&lt;/a&gt;. This will catch
rich context bugs and provide us with vital information about what the user
was doing when the crash occured.&lt;/p&gt;
&lt;p&gt;This also helps sharing bug information within a team.&lt;/p&gt;
&lt;p&gt;The sentry cube reports on errors being raised when using the web
application, but can also catch some errors when running some
maintenance or import commands (&lt;cite&gt;ccplugins&lt;/cite&gt; in CubicWeb). In this
particular case, a lot of importing is being done and Sentry can
detect and help us triage the import errors with context on which
files are failing.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;monitoring-usage-client-side&quot;&gt;
&lt;h3&gt;&lt;a&gt;Monitoring usage / client side&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This part is a bit neglected for the moment. Client side we can use
Javascript to monitor usage. Some basic metrics can come from &lt;a class=&quot;reference&quot; href=&quot;http://piwik.org/&quot;&gt;piwik&lt;/a&gt; which is usually used for audience
statistics. To get more precise statistics we&#39;ve been told &lt;a class=&quot;reference&quot; href=&quot;http://www.lognormal.com/boomerang/doc/&quot;&gt;Boomerang&lt;/a&gt; has an interesting
approach, enabling a closer look at how fast a page was displayed
client side, how much time was spend on DNS, etc.&lt;/p&gt;
&lt;p&gt;On the client side, we&#39;re also looking at two features of the Sentry
project : the &lt;a class=&quot;reference&quot; href=&quot;https://github.com/getsentry/raven-js/&quot;&gt;raven-js&lt;/a&gt;
client which reports Javascript errors directly from the browser to
the Sentry server, and the user feedback form which captures some
context when something goes wrong or a user/client wants to report
that something should be changed on a given page.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;load-testing-coverage&quot;&gt;
&lt;h3&gt;&lt;a&gt;Load testing - coverage&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To wrap up, we also often generate traffic to catch some bugs and
performance metrics automatically :&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;wget --mirror $URL&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;reference&quot; href=&quot;http://wummel.github.io/linkchecker/&quot;&gt;linkchecker&lt;/a&gt; $URL&lt;/li&gt;
&lt;li&gt;for $search_term in &lt;cite&gt;cat corpus&lt;/cite&gt;; do wget URL/$search_term ; done&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;reference&quot; href=&quot;http://wapiti.sourceforge.net/&quot;&gt;wapiti&lt;/a&gt; $URL --scope page&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;reference&quot; href=&quot;https://cirt.net/nikto2&quot;&gt;nikto&lt;/a&gt; $URL&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then watch the graphs and the errors in Sentry... Fix them. Restart.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;graphing-it-in-grafana&quot;&gt;
&lt;h3&gt;&lt;a&gt;Graphing it in Grafana&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We&#39;ve spend little time on the dashboard yet since we&#39;re concentrating on collecting the metrics for now. But here is a glimpse of the &quot;work in progress&quot; dashboard which combines various data sources and various metrics on the same screen and the same time scale.&lt;/p&gt;
&lt;img alt=&quot;https://www.cubicweb.org/file/15338648/raw/Screenshot_2016-09-13_09-41-45.png&quot; src=&quot;https://www.cubicweb.org/file/15338648/raw/Screenshot_2016-09-13_09-41-45.png&quot;/&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;further-plans&quot;&gt;
&lt;h3&gt;&lt;a&gt;Further plans&lt;/a&gt;&lt;/h3&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;internal health checks, we&#39;re taking a look at &lt;a class=&quot;reference&quot; href=&quot;https://github.com/python-hospital/hospital&quot;&gt;python-hospital&lt;/a&gt; and &lt;a class=&quot;reference&quot; href=&quot;https://vimeo.com/173610242&quot;&gt;healthz: Stop
reverse engineering applications and start monitoring from the
inside (Monitorama)&lt;/a&gt; (the idea is to
distinguish between the app is running and the app is serving it&#39;s
purpose), and &lt;a class=&quot;reference&quot; href=&quot;https://github.com/ludia/pyramid_health&quot;&gt;pyramid_health&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;graph the number of Sentry errors and the number of types of errors:
the sentry API should be able to give us this information. Feed it to
Salt and Carbon.&lt;/li&gt;
&lt;li&gt;setup some alerting : next versions of Grafana will be doing that, or with &lt;a class=&quot;reference&quot; href=&quot;https://github.com/Yelp/elastalert&quot;&gt;elastalert&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;setup &quot;release version X&quot; events in Graphite that are displayed in
Grafana, maybe with some manual command or a postcreate command when
using &lt;cite&gt;docker-compose up&lt;/cite&gt; ?&lt;/li&gt;
&lt;li&gt;make it easier for devs to have this kind of setup. Using this suite
of tools in developement might sometimes be overkill, but can be
useful.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
  <dc:date>2016-09-16T10:34-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/10528680</guid>
  <title>Status of the CubicWeb python3 porting effort, February 2016</title>
  <link>https://www.cubicweb.org/blogentry/10528680</link>
  <description>&lt;p&gt;An effort to port CubicWeb to a dual python 2.6/2.7 and 3.3+ code base was started by Rémi Cardona in summer of 2014.  The first task was to port all of CubicWeb&#39;s dependencies:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;logilab-common 0.63&lt;/li&gt;
&lt;li&gt;logilab-database 1.14&lt;/li&gt;
&lt;li&gt;logilab-mtconverter 0.9&lt;/li&gt;
&lt;li&gt;logilab-constraint 0.6&lt;/li&gt;
&lt;li&gt;yams 0.40&lt;/li&gt;
&lt;li&gt;rql 0.34&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once that was out of the way, we could start looking at CubicWeb itself.  We first set out to make sure we used python3-compatible syntax in all source files, then started to go and make as much of the test suite as possible pass under both python2.7 and python3.4.  As of the 3.22 release, we are almost there.  The remaining pain points are:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;cubicweb&#39;s setup.py hadn&#39;t been converted.  This is fixed in the 3.23 branch as of &lt;a class=&quot;reference&quot; href=&quot;https://hg.logilab.org/master/cubicweb/rev/0b59724cb3f2&quot;&gt;https://hg.logilab.org/master/cubicweb/rev/0b59724cb3f2&lt;/a&gt; (don&#39;t follow that link, the commit is &lt;strong&gt;huge&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;the CubicWebServerTC test class uses twisted to start an http server thread, and twisted itself is not available for python3&lt;/li&gt;
&lt;li&gt;the current method to serialize schema constraints into CWConstraint objects gives different results on python2 and python3, so it needs to be fixed (&lt;a class=&quot;reference&quot; href=&quot;https://www.logilab.org/ticket/296748&quot;&gt;https://www.logilab.org/ticket/296748&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;various questions around packaging and deployment: what happens to e.g. the cubicweb-common package installing into python2&#39;s site-packages directory?  What does the ${prefix}/share/cubicweb directory become?  How do cubes express their dependencies?  Do we need a flag day?  What does that mean for applications?&lt;/li&gt;
&lt;/ul&gt;</description>
  <dc:date>2016-02-05T15:03-01:00</dc:date>
  <dc:creator>Julien Cristau</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/10520568</guid>
  <title>Moving forward on CubicWeb development</title>
  <link>https://www.cubicweb.org/blogentry/10520568</link>
  <description>&lt;p&gt;Some of us at Logilab made some kind of retrospective of the processes surrounding CubicWeb (core) development. One of the important point is that we decided that Logilab would not resume the bi-monthly meetings with other developers and users to discuss and update the roadmap.&lt;/p&gt;
&lt;p&gt;Instead, we will do more Blog Driven Development (as started by Denis on &lt;a class=&quot;reference&quot; href=&quot;https://www.cubicweb.org/blogentry/9854168&quot;&gt;this blog&lt;/a&gt;) to keep the community up to date with our internal effort. We will continue to use the mailing-list to discuss with everybody what we contribute to CubicWeb.&lt;/p&gt;
&lt;p&gt;We will also try to organize a sprint in the coming months, but we are not able to commit on a date for now, because we are under a heavy load with customer work (which is a good thing for us &lt;em&gt;and&lt;/em&gt; CubicWeb, of course).&lt;/p&gt;
&lt;p&gt;Another topic was to set up a kind of working agreement for those developing on the core. For a start, we agreed on the following points:&lt;/p&gt;
&lt;ul class=&quot;simple&quot;&gt;
&lt;li&gt;we stop the two-steps review process&lt;/li&gt;
&lt;li&gt;integrators commit to handling pending reviews under a 7 days time frame&lt;/li&gt;
&lt;li&gt;an integrator is not allowed to integrate his or her own patches&lt;/li&gt;
&lt;li&gt;incoming patches should not make the QA numbers go down, and should be py3k compatible.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;QA numbers are still to be defined in a forthcoming internal sprint on continuous integration system. Current integrators are Julien, David, Denis, Florent and Sylvain. If you&#39;re interested, let us know on the mailing-list.&lt;/p&gt;</description>
  <dc:date>2016-02-08T13:50-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/10297489</guid>
  <title>Using JSONAPI as a Web API format for CubicWeb</title>
  <link>https://www.cubicweb.org/blogentry/10297489</link>
  <description>&lt;p&gt;Following the &lt;a href=&quot;https://www.cubicweb.org/9854168&quot;&gt;introduction post&lt;/a&gt; about rethinking the web user
interface of CubicWeb, this article will address the topic of the &lt;em&gt;Web API&lt;/em&gt; to
exchange data between the client and the server. As mentioned earlier, this
question is somehow central and deserves particular interest, and better early
than late. Of the two candidate representations previously identified
&lt;a href=&quot;http://hydra-cg.com/&quot;&gt;Hydra&lt;/a&gt; and &lt;a href=&quot;http://jsonapi.org/&quot;&gt;JSON API&lt;/a&gt;, this article will focus on the later.
Hopefully, this will give a better insight of the capabilities and limits of
this specification and would help take a decision, though a similar experiment
with another candidate would be good to have. Still in the process of &lt;a href=&quot;http://blog.estimote.com/post/119525082855/user-stories-on-steroids-how-estimote-uses-blog&quot;&gt;blog
driven development&lt;/a&gt;, this post has several open questions from which a
discussion would hopefully emerge...&lt;/p&gt;
&lt;h1&gt;A glance at JSON API&lt;/h1&gt;
&lt;p&gt;&lt;a href=&quot;http://jsonapi.org/&quot;&gt;JSON API&lt;/a&gt; is a specification for building APIs that use JSON as a
data exchange format between clients and a server. The media type is
&lt;a href=&quot;http://www.iana.org/assignments/media-types/application/vnd.api+json&quot;&gt;application/vnd.api+json&lt;/a&gt;. It has a 1.0 version available from mid-2015.
The &lt;a href=&quot;http://jsonapi.org/format/&quot;&gt;format&lt;/a&gt; has interesting features such as the ability to build
&lt;a href=&quot;http://jsonapi.org/format/#document-compound-documents&quot;&gt;compound documents&lt;/a&gt; (i.e. response made of several, usually
related, resources) or to specify &lt;a href=&quot;http://jsonapi.org/format/#fetching-filtering&quot;&gt;filtering&lt;/a&gt;, &lt;a href=&quot;http://jsonapi.org/format/#fetching-sorting&quot;&gt;sorting&lt;/a&gt; and pagination.&lt;/p&gt;
&lt;p&gt;A document following the JSON API format basically represents &lt;a href=&quot;http://jsonapi.org/format/#document-resource-objects&quot;&gt;resource
objects&lt;/a&gt;, their &lt;em&gt;attributes&lt;/em&gt; and &lt;em&gt;relationships&lt;/em&gt; as well as some &lt;a href=&quot;http://jsonapi.org/format/#document-links&quot;&gt;links&lt;/a&gt;
also related to the data of primary concern.&lt;/p&gt;
&lt;p&gt;Taking the example of a &lt;code&gt;Ticket&lt;/code&gt; resource modeled after the &lt;a href=&quot;https://www.cubicweb.org/project/cubicweb-tracker&quot;&gt;tracker&lt;/a&gt; cube,
we could have a JSON API document formatted as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET /ticket/987654
Accept: application/vnd.api+json

{
  &quot;links&quot;: {
    &quot;self&quot;: &quot;https://www.cubicweb.org/ticket/987654&quot;
  },
  &quot;data&quot;: {
    &quot;type&quot;: &quot;ticket&quot;,
    &quot;id&quot;: &quot;987654&quot;,
    &quot;attributes&quot;: {
      &quot;title&quot;: &quot;Let&#39;s use JSON API in CubicWeb&quot;
      &quot;description&quot;: &quot;Well, let&#39;s try, at least...&quot;,
    },
    &quot;relationships&quot;: {
      &quot;concerns&quot;: {
        &quot;links&quot;: {
          &quot;self&quot;: &quot;https://www.cubicweb.org/ticket/987654/relationships/concerns&quot;,
          &quot;related&quot;: &quot;https://www.cubicweb.org/ticket/987654/concerns&quot;
        },
        &quot;data&quot;: {&quot;type&quot;: &quot;project&quot;, &quot;id&quot;: &quot;1095&quot;}
      },
      &quot;done_in&quot;: {
        &quot;links&quot;: {
          &quot;self&quot;: &quot;https://www.cubicweb.org/ticket/987654/relationships/done_in&quot;,
          &quot;related&quot;: &quot;https://www.cubicweb.org/ticket/987654/done_in&quot;
        },
        &quot;data&quot;: {&quot;type&quot;: &quot;version&quot;, &quot;id&quot;: &quot;998877&quot;}
      }
    }
  },
  &quot;included&quot;: [{
    &quot;type&quot;: &quot;project&quot;,
    &quot;id&quot;: &quot;1095&quot;,
    &quot;attributes&quot;: {
        &quot;name&quot;: &quot;CubicWeb&quot;
    },
    &quot;links&quot;: {
      &quot;self&quot;: &quot;https://www.cubicweb.org/project/cubicweb&quot;
    }
  }]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this JSON API document, top-level members are &lt;code&gt;links&lt;/code&gt;, &lt;code&gt;data&lt;/code&gt;
and &lt;code&gt;included&lt;/code&gt;. The later is here used to ship some resources (here a
&quot;project&quot;) related to the &quot;primary data&quot; (a &quot;ticket&quot;) through the &quot;concerns&quot;
relationship as denoted in the &lt;a href=&quot;http://jsonapi.org/format/#document-resource-object-relationships&quot;&gt;relationships object&lt;/a&gt; (more on this later).&lt;/p&gt;
&lt;p&gt;While the decision of including or not these related resources along with the
primary data is left to the API designer, JSON API also offers a specification
to build queries for &lt;a href=&quot;http://jsonapi.org/format/#fetching-includes&quot;&gt;inclusion of related resources&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET /ticket/987654?include=done_in
Accept: application/vnd.api+json
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;would lead to a response including the full version resource along with the
above content.&lt;/p&gt;
&lt;p&gt;Enough for the JSON API overview. Next I&#39;ll present how various aspects of
data fetching and modification can be achieved through the use of JSON API in
the context of a CubicWeb application.&lt;/p&gt;
&lt;h1&gt;CRUD&lt;/h1&gt;
&lt;p&gt;&lt;a href=&quot;http://jsonapi.org/format/#crud&quot;&gt;CRUD&lt;/a&gt; of resources is handled in a fairly standard way in JSON API, relying
of HTTP protocol semantics.&lt;/p&gt;
&lt;p&gt;For instance, creating a ticket could be done as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;POST /ticket
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;ticket&quot;,
    &quot;attributes&quot;: {
      &quot;title&quot;: &quot;Let&#39;s use JSON API in CubicWeb&quot;
      &quot;description&quot;: &quot;Well, let&#39;s try, at least...&quot;,
    },
    &quot;relationships&quot;: {
      &quot;concerns&quot;: {
        &quot;data&quot;: { &quot;type&quot;: &quot;project&quot;, &quot;id&quot;: &quot;1095&quot; }
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then updating it (assuming we got its &lt;code&gt;id&lt;/code&gt; from a response to the above
request):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;PATCH /ticket/987654
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;ticket&quot;,
    &quot;id&quot;: &quot;987654&quot;,
    &quot;attributes&quot;: {
      &quot;description&quot;: &quot;We&#39;ll succeed, for sure!&quot;,
    },
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;Relationships&lt;/h1&gt;
&lt;p&gt;In JSON API, a relationship is in fact a first class resource as it is defined
by a noun and an URI through a &lt;a href=&quot;http://jsonapi.org/format/#document-links&quot;&gt;link object&lt;/a&gt;. In this respect, the
client just receives a couple of links and can eventually operate on them
using the proper HTTP verb. Fetching or updating relationships is done using
the special &lt;code&gt;&amp;lt;resource url&amp;gt;/relationships/&amp;lt;relation type&amp;gt;&lt;/code&gt; endpoint (&lt;code&gt;self&lt;/code&gt;
member of &lt;code&gt;relationships&lt;/code&gt; items in the first example). Quite naturally, the
specification relies on &lt;code&gt;GET&lt;/code&gt; verb for fetching targets, &lt;code&gt;PATCH&lt;/code&gt; for
(re)setting a relation (i.e. replacing its targets), &lt;code&gt;POST&lt;/code&gt; for adding targets
and &lt;code&gt;DELETE&lt;/code&gt; to drop them.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET /ticket/987654/relationships/concerns
Accept: application/vnd.api+json

{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;project&quot;,
    &quot;id&quot;: &quot;1095&quot;
  }
}

PATCH /ticket/987654/relationships/done_in
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;version&quot;,
    &quot;id&quot;: &quot;998877&quot;
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The body of request and response of this &lt;code&gt;&amp;lt;resource
url&amp;gt;/relationships/&amp;lt;relation type&amp;gt;&lt;/code&gt; endpoint consists of so-called &lt;a href=&quot;http://jsonapi.org/format/#document-resource-identifier-objects&quot;&gt;resource
identifier objects&lt;/a&gt; which are lightweight representation of resources
usually only containing information about their &quot;type&quot; and &quot;id&quot; (enough to
uniquely identify them).&lt;/p&gt;
&lt;h1&gt;Related resources&lt;/h1&gt;
&lt;p&gt;Remember the &lt;code&gt;related&lt;/code&gt; member appearing in relationships links in the first
example?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  [ ... ]
  &quot;done_in&quot;: {
    &quot;links&quot;: {
      &quot;self&quot;: &quot;https://www.cubicweb.org/ticket/987654/relationships/done_in&quot;,
      &quot;related&quot;: &quot;https://www.cubicweb.org/ticket/987654/done_in&quot;
    },
    &quot;data&quot;: {&quot;type&quot;: &quot;version&quot;, &quot;id&quot;: &quot;998877&quot;}
  }
  [ ... ]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;While this is not a mandatory part of the specification, it has an interesting
usage for fetching relationship targets. In contrast with the
&lt;code&gt;.../relationships/...&lt;/code&gt; endpoint, this one is expected to return plain
&lt;a href=&quot;http://jsonapi.org/format/#document-resource-objects&quot;&gt;resource objects&lt;/a&gt; (which attributes and relationships information in
particular).&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET /ticket/987654/done_in
Accept: application/vnd.api+json

{
  &quot;links&quot;: {
    &quot;self&quot;: &quot;https://www.cubicweb.org/998877&quot;
  },
  &quot;data&quot;: {
    &quot;type&quot;: &quot;version&quot;,
    &quot;id&quot;: &quot;998877&quot;,
    &quot;attributes&quot;: {
        &quot;number&quot;: 4.2
    },
    &quot;relationships&quot;: {
      &quot;version_of&quot;: {
        &quot;self&quot;: &quot;https://www.cubicweb.org/998877/relationships/version_of&quot;,
        &quot;data&quot;: { &quot;type&quot;: &quot;project&quot;, &quot;id&quot;: &quot;1095&quot; }
      }
    }
  },
  &quot;included&quot;: [{
    &quot;type&quot;: &quot;project&quot;,
    &quot;id&quot;: &quot;1095&quot;,
    &quot;attributes&quot;: {
        &quot;name&quot;: &quot;CubicWeb&quot;
    },
    &quot;links&quot;: {
      &quot;self&quot;: &quot;https://www.cubicweb.org/project/cubicweb&quot;
    }
  }]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;Meta information&lt;/h1&gt;
&lt;p&gt;The JSON API specification allows to include non-standard information using a
so-called &lt;a href=&quot;http://jsonapi.org/format/#document-meta&quot;&gt;meta&lt;/a&gt; object. This can be found in various place of the document
(top-level, &lt;a href=&quot;http://jsonapi.org/format/#document-resource-objects&quot;&gt;resource objects&lt;/a&gt; or &lt;a href=&quot;http://jsonapi.org/format/#document-resource-object-relationships&quot;&gt;relationships object&lt;/a&gt;). Usages of this
field is completely free (and optional). For instance, we could use this field
to store the workflow state of a ticket:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;ticket&quot;,
    &quot;id&quot;: &quot;987654&quot;,
    &quot;attributes&quot;: {
      &quot;title&quot;: &quot;Let&#39;s use JSON API in CubicWeb&quot;
    },
    &quot;meta&quot;: { &quot;state&quot;: &quot;open&quot; }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;Permissions&lt;/h1&gt;
&lt;p&gt;Permissions are part of &lt;em&gt;metadata&lt;/em&gt; to be exchanged during request/response
cycles. As such, the best place to convey this information is probably within
the &lt;em&gt;headers&lt;/em&gt;. According to JSON API&#39;s FAQ, this is also the &lt;a href=&quot;http://jsonapi.org/faq/#how-to-discover-resource-possible-actions&quot;&gt;recommended
way&lt;/a&gt; for a resource to advertise on supported actions.&lt;/p&gt;
&lt;p&gt;So for instance, response to a &lt;code&gt;GET&lt;/code&gt; request could include &lt;a href=&quot;https://tools.ietf.org/html/rfc7231#section-7.4.1&quot;&gt;Allow&lt;/a&gt; headers,
indicating which request methods are allowed on the primary resource
requested:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET /ticket/987654
Allow: GET, PATCH, DELETE
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;An &lt;code&gt;HEAD&lt;/code&gt; request could also be used for querying allowed actions on &lt;em&gt;links&lt;/em&gt;
(such as relationships):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;HEAD /ticket/987654/relationships/comments
Allow: POST
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This approach has the advantage of being standard HTTP, no particular
knowledge of the permissions model is required and the response body is not
cluttered with these &lt;em&gt;metadata&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Another possibility would be to rely use the &lt;a href=&quot;http://jsonapi.org/format/#document-meta&quot;&gt;meta&lt;/a&gt; member of JSON API data.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  &quot;data&quot;: {
    &quot;type&quot;: &quot;ticket&quot;,
    &quot;id&quot;: &quot;987654&quot;,
    &quot;attributes&quot;: {
      &quot;title&quot;: &quot;Let&#39;s use JSON API in CubicWeb&quot;
    },
    &quot;meta&quot;: {
      &quot;permissions&quot;: [&quot;read&quot;, &quot;update&quot;]
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Clearly, this would minimize the amount client/server requests.&lt;/p&gt;
&lt;h1&gt;More Hypermedia controls&lt;/h1&gt;
&lt;p&gt;With the example implementation described above, it appears already possible to
manipulate several aspects of the entity-relationship database following a
CubicWeb schema: resources fetching, CRUD operations on entities, set/delete
operations on relationships. All these &quot;standard&quot; operations are discoverable
by the client simply because they are baked into the JSON API format: for
instance, adding a target to some relationship is possible by &lt;code&gt;POST&lt;/code&gt;ing to the
corresponding &lt;a href=&quot;http://jsonapi.org/format/#document-resource-object-relationships&quot;&gt;relationship resource&lt;/a&gt; something that
conforms to the schema.&lt;/p&gt;
&lt;p&gt;So, implicitly, this already gives us a fairly good level of &lt;a href=&quot;http://martinfowler.com/articles/richardsonMaturityModel.html#level3&quot;&gt;Hypermedia
control&lt;/a&gt; so that we&#39;re not so far from having a mature REST architecture
according to the &lt;a href=&quot;http://martinfowler.com/articles/richardsonMaturityModel.html&quot;&gt;Richardson Maturity Model&lt;/a&gt;. But beyond these &quot;standard&quot;
discoverable actions, the JSON API specification does not address yet
Hypermedia controls in a generic manner (see this interesting
&lt;a href=&quot;https://github.com/json-api/json-api/issues/745&quot;&gt;discussion&lt;/a&gt; about extending the specification for this
purpose).&lt;/p&gt;
&lt;p&gt;So the question is: would we want more? Or, in other words, do we need to
define &quot;actions&quot; which would not map directly to a concept in the application
model?&lt;/p&gt;
&lt;p&gt;In the case of a CubicWeb application, the most obvious example (that I could
think of) of where such an &quot;action&quot; would be needed is &lt;em&gt;workflow state
handling&lt;/em&gt;. Roughly, &lt;a href=&quot;https://docs.cubicweb.org/book/devrepo/datamodel/define-workflows.html&quot;&gt;workflows&lt;/a&gt; in CubicWeb are modeled through two entity
types &lt;code&gt;State&lt;/code&gt; and &lt;code&gt;TrInfo&lt;/code&gt; (for &quot;transition information&quot;), the former being
handled through the latter, and a relationship &lt;code&gt;in_state&lt;/code&gt; between the
workflowable entity type at stake and its current &lt;code&gt;State&lt;/code&gt;. It does not appear
so clearly how would one model this in terms of HTTP resource. (Arguably we
wouldn&#39;t want to expose the complexity of Workflow/TrInfo/State data model to
the client, nor can we simply expose this &lt;code&gt;in_state&lt;/code&gt; relationship, as a client
would not be able to simply change the state of a entity by updating the
relation). So what would be a custom &quot;action&quot; to handle the state of a
workflowable resource? Back in our tracker example, how would we advertise to
the client the possibility to perform &quot;open&quot;/&quot;close&quot;/&quot;reject&quot; actions on a
ticket resource? Open question...&lt;/p&gt;
&lt;h1&gt;Request for comments&lt;/h1&gt;
&lt;p&gt;In this post, I tried to give an overview of a possible usage of &lt;a href=&quot;http://jsonapi.org/&quot;&gt;JSON
API&lt;/a&gt; to build a Web API for CubicWeb. Several aspects were discussed
from simple CRUD operations, to relationships handling or non-standard
actions. In many cases, there are open questions for which I&#39;d love to receive
feedback from the community.
Recalling that this topic is a central part of the experiment towards building
a client-side user interface to CubicWeb, the more discussion it gets, the
better!&lt;/p&gt;
&lt;p&gt;For those wanting to try and play themselves with the experiments, have a look
at the &lt;a href=&quot;http://hg.logilab.org/users/dlaxalde/cubes/jsonapi&quot;&gt;code&lt;/a&gt;. This is a
work-in-progress/experimental implementation, relying on Pyramid for content
negotiation and route traversals.&lt;/p&gt;
&lt;p&gt;What&#39;s next? Maybe an alternative experiment relying on &lt;a href=&quot;http://hydra-cg.com/&quot;&gt;Hydra&lt;/a&gt;? Or an
orthogonal one playing with the schema client-side?&lt;/p&gt;</description>
  <dc:date>2016-02-08T13:03-01:00</dc:date>
  <dc:creator>Denis Laxalde</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/10268799</guid>
  <title>Happy New Year CubicWeb !</title>
  <link>https://www.cubicweb.org/blogentry/10268799</link>
  <description>&lt;p&gt;This CubicWeb blog that has been asleep for some months, whereas the development was active. Let me try to summarize the recent progress.&lt;/p&gt;
&lt;img alt=&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/New_Year_Ornaments_%282%29.JPG/320px-New_Year_Ornaments_%282%29.JPG&quot; src=&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/New_Year_Ornaments_%282%29.JPG/320px-New_Year_Ornaments_%282%29.JPG&quot;/&gt;
&lt;div class=&quot;section&quot; id=&quot;cubicweb-3-21&quot;&gt;
&lt;h3&gt;&lt;a&gt;CubicWeb 3.21&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a class=&quot;reference&quot; href=&quot;http://www.cubicweb.org/project/cubicweb/3.21.0&quot;&gt;CubicWeb 3.21&lt;/a&gt; was published in July 2015. The &lt;a class=&quot;reference&quot; href=&quot;http://lists.cubicweb.org/pipermail/cubicweb/2015-July/002427.html&quot;&gt;announce&lt;/a&gt; was sent to the mailing list and &lt;a class=&quot;reference&quot; href=&quot;http://docs.cubicweb.org/changes/3.21.html&quot;&gt;changes were listed in the documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main goal of this release was to reduce the technical debt. The code was improved, but the changes
were not directly visible to users.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;cubicweb-3-22&quot;&gt;
&lt;h3&gt;&lt;a&gt;CubicWeb 3.22&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a class=&quot;reference&quot; href=&quot;http://www.cubicweb.org/project/cubicweb/3.22.0&quot;&gt;CubicWeb 3.22&lt;/a&gt; was published in January 2016. A &lt;a class=&quot;reference&quot; href=&quot;http://lists.cubicweb.org/pipermail/cubicweb/2016-January/002451.html&quot;&gt;mail&lt;/a&gt; was sent to the mailing list and the documentation was updated with the list of &lt;a class=&quot;reference&quot; href=&quot;http://docs.cubicweb.org/changes/3.22.html&quot;&gt;changes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main achievements of this release were the inclusion of a new procedure to massively import data when using a Postgresql backend, improvements of migrations and customization of generic JSON exports.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;roadmap-and-bi-monthly-meetings&quot;&gt;
&lt;h3&gt;&lt;a&gt;Roadmap and bi-monthly meetings&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;After the last-minute cancellation of the may 2015 roadmap meeting, we failed to reschedule in june, the summer arrived, then the busy-busy end of the year... and voilà, we are in 2016.&lt;/p&gt;
&lt;p&gt;During that time, Logilab has been working on massive data import, full-js user interfaces exchanging JSON with the CubicWeb back-end, 3D in the browser, switching CubicWeb to Python3, moving its own apps to Bootstrap,  using CubicWeb-Pyramid in production and improving management/supervision, etc. We will be more than happy to discuss this with the rest of the (small but strong) CubicWeb community.&lt;/p&gt;
&lt;p&gt;So let&#39;s wish a happy new year to everyone and meet again in March for a new roadmap session !&lt;/p&gt;
&lt;/div&gt;</description>
  <dc:date>2016-01-25T13:30-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
</item>
<item>
<guid isPermaLink="true">https://www.cubicweb.org/blogentry/9854168</guid>
  <title>Towards building a JavaScript user interface to CubicWeb</title>
  <link>https://www.cubicweb.org/blogentry/9854168</link>
  <description>&lt;p&gt;This post is an introduction of a series of articles dealing with an on-going
experiment on building a JavaScript user interface to CubicWeb, to ultimately
replace the &lt;a href=&quot;https://docs.cubicweb.org/book/devweb/index.html&quot;&gt;web&lt;/a&gt; component of the framework. The idea of this series
is to present the main topics of the experiment, with open questions in order
to eventually engage the community as much as possible. The other side of this
is to experiment a &lt;a href=&quot;http://blog.estimote.com/post/119525082855/user-stories-on-steroids-how-estimote-uses-blog&quot;&gt;blog driven development&lt;/a&gt; process, so getting feedback
is the very point of it!&lt;/p&gt;
&lt;p&gt;As of today, three main topics have been identified:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the &lt;em&gt;Web API&lt;/em&gt; to let the client and server communicate,&lt;/li&gt;
&lt;li&gt;the issue of representing the application &lt;em&gt;schema&lt;/em&gt; client-side, and,&lt;/li&gt;
&lt;li&gt;the construction of &lt;em&gt;components&lt;/em&gt; of the web interface (client-side).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As part of the first topic, we&#39;ll probably rely on another experimental work
about REST-fulness undertaken recently in &lt;a href=&quot;https://www.cubicweb.org/project/pyramid-cubicweb&quot;&gt;pyramid-cubicweb&lt;/a&gt; (see this
&lt;a href=&quot;http://hg.logilab.org/review/pyramid-cubicweb/rev/000e7f6018ca&quot;&gt;head&lt;/a&gt; for source code). Then, it appears quite clearly that
we&#39;ll need sooner or later a representation of data on the client-side and
that, quite obviously, the underlying format would be JSON. Apart from
exchanging of entities (database) information, we already anticipate on the
need for the &lt;a href=&quot;https://en.wikipedia.org/wiki/HATEOAS&quot;&gt;HATEOAS&lt;/a&gt; part of REST. We already took some time to look at
the existing possibilities. At a first glance, it seems that &lt;a href=&quot;http://www.markus-lanthaler.com/hydra/&quot;&gt;hydra&lt;/a&gt; is the
most promising in term of capabilities. It&#39;s also built using semantic web
technologies which definitely grants bonus point for CubicWeb. On the other
hand, it seems a bit isolated and very experimental, while &lt;a href=&quot;http://jsonapi.org/&quot;&gt;JSON API&lt;/a&gt;
follows a more pragmatic approach (describe itself as an &lt;em&gt;anti-bikeshedding
tool&lt;/em&gt;) and appears to have more traction from various people. For this reason,
we choose it for our first draft, but this topic seems so central in a new UI,
and hard to hide as an implementation detail; that it definitely deserves more
discussion. Other candidates could be &lt;a href=&quot;https://github.com/kevinswiber/siren&quot;&gt;Siren&lt;/a&gt;, &lt;a href=&quot;http://stateless.co/hal_specification.html&quot;&gt;HAL&lt;/a&gt; or &lt;a href=&quot;http://rawgit.com/uber-hypermedia/specification/master/uber-hypermedia.html&quot;&gt;Uber&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Concerning the &lt;em&gt;schema&lt;/em&gt;, it seems that there is consensus around
&lt;a href=&quot;http://json-schema.org/&quot;&gt;JSON-Schema&lt;/a&gt; so we&#39;ll certainly give it a try.&lt;/p&gt;
&lt;p&gt;Finally, while there is nothing certain as of today we&#39;ll probably start on
building &lt;em&gt;components&lt;/em&gt; of the web interface using &lt;a href=&quot;http://facebook.github.io/react&quot;&gt;React&lt;/a&gt;, which is also
getting quite popular these days. Beyond that choice, the first practical task
in this topic will concern the &lt;a href=&quot;https://docs.cubicweb.org/book/devweb/views/primary.html&quot;&gt;primary view&lt;/a&gt; system. This task being neither
too simple nor too complicated will hopefully result in a clearer overview of
what the project will imply. Then, the question of &lt;em&gt;edition&lt;/em&gt; will come up at
some point. In this respect, perhaps it&#39;ll be a good time to put the UX
question at a central place, in order to avoid design issues that we had in
the past.&lt;/p&gt;
&lt;p&gt;Feedback welcome!&lt;/p&gt;</description>
  <dc:date>2016-01-27T21:15-01:00</dc:date>
  <dc:creator>Denis Laxalde</dc:creator>
</item>
  </channel>
</rss>