Ticket #697 (closed Enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Remove "Directives" parameter from Core API

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.4
Component: DeepaMehta Standard Distribution Version: 4.3
Keywords: Cc: dgf, Malte, carolina
Complexity: 5 Area: Application Framework / API
Module: deepamehta-core

Description

The Directives parameter is omnipresent in the Core API and makes it harder to use and error prone. The developer should not be required to create/pass/manipulate any Directives. Actually building the directives is clerical bookkeeping work and could be handled automatically by the Core in most cases.

The Directives parameter should be completely removed from the Core API. Instead the Core should hold a Directives object in a thread-local variable and maintain it on a per-request basis.

Change History

comment:1 Changed 5 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt1 (#697).

BREAKING CHANGE

The Directives parameter is about being completely removed from the Core API.

Already removed from deletion-related Core Service calls and corresponding event listeners.

There is a new static method to get the Directives object for the current request (however most plugins will not need it):

Directives.get()

Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.

See #697.

comment:3 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt2 (#697).

The Directives parameter is removed from create- and update-related Core Service calls and corresponding event listeners.

Removing the Directives parameter from the Core API is now complete.

See #697.

comment:4 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt1 (#697).

BREAKING CHANGE

The Directives parameter is about being completely removed from the Core API.

Already removed from deletion-related Core Service calls and corresponding event listeners.

There is a new static method to get the Directives object for the current request (however most plugins will not need it):

Directives.get()

Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.

See #697.

comment:5 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt2 (#697).

The Directives parameter is removed from create- and update-related Core Service calls and corresponding event listeners.

Removing the Directives parameter from the Core API is now complete.

See #697.

comment:6 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt1 (#697).

BREAKING CHANGE

The Directives parameter is about being completely removed from the Core API.

Already removed from deletion-related Core Service calls and corresponding event listeners.

There is a new static method to get the Directives object for the current request (however most plugins will not need it):

Directives.get()

Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.

See #697.

comment:7 Changed 5 years ago by Jörg Richter

Core API: remove Directives parameter, pt2 (#697).

The Directives parameter is removed from create- and update-related Core Service calls and corresponding event listeners.

Removing the Directives parameter from the Core API is now complete.

See #697.

comment:8 Changed 5 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.