Commit Graph

11 Commits (cb80df4f4ab0e8de16d53c7fddff7c44dedd3f94)

Author SHA1 Message Date
liyi 8f10215ffd Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.


Change-Id: Ieec8028305099422e1b0f8fc84bc90c9ca6c694f
2017-03-25 17:11:50 +08:00
Crag Wolfe 283b2d3985 Eager load event's resource prop. data when appropiate
Eager load an event's resource properties data in the list_events
"show event" case, i.e. when an event uuid is specified. When showing
multiple events, the events' resource properties data should not be
eager loaded.

Change-Id: I12e371dcbdae398360e28200e68f4a75831f8f17
Closes-bug: #1665506
2017-03-01 11:34:09 -05:00
Crag Wolfe 019ae84d4f Remove unused event_get methods
Remove unused event get methods from the sqlalchemy db api and event

Change-Id: Ide5780d456755e180572194ad4d06277749c8c79
2017-03-01 08:50:06 -05:00
Crag Wolfe fdddc28f9d Lazy-load resource_properties_data for events
Typically when retrieving a large number of events, we don't need to
load resource_properties_data for each event.

Change-Id: I6564fea91d19c24409075152a614cc036dc1ee34
2017-02-06 19:11:30 -08:00
Crag Wolfe 791c245c14 Add resource_properties_data assoc. to resource, event objs
Add the resource_properties_data association to resource and event
objects. The resource and event engine objects do not use yet
it but will soon.

Change-Id: Idecaafffbc5e9bfcd2355e2a165836a5ed89b16f
2016-12-22 10:59:01 -08:00
Thomas Herve 84067dba88 Remove db.api wrapper
The db.api module provides a useless indirection to the only
implementation we ever had, sqlalchemy. Let's use that directly instead
of the wrapper.

Change-Id: I80353cfed801b95571523515fd3228eae45c96ae
2016-12-13 09:40:29 +01:00
Steve Baker 7bfbace79f Use Event versioned object for event_list formatting
This change removes the event.Event.load method, and switches
api.format_event to using the Event versioned object instead.

Since the only purpose of loading the stack is to get its identifier,
this is now also coming from a Stack versioned object.

Related-Bug: #1588561
Change-Id: I7b1fc99894818b44cde08cf08b010b1d1fb94e9f
2016-06-13 09:39:52 +12:00
Grzegorz Grasza dfdbc99d8f Add OBJ_PROJECT_NAMESPACE for Heat project
This code will be used when objects are registered and serialized.

Change-Id: I9d9095bc40e61a104ebea5042f4eb75d16d27d69
Partial-Bug: 1491258
2016-01-22 21:53:51 +00:00
Peter Razumovsky 9176a36f10 Fix [H405] pep rule in heat/objects
Implements bp docstring-improvements

Change-Id: I4038f6695e4d4e9aae2cc6ac9b8830fccd9bfa53
2015-10-08 15:13:52 +03:00
Kanagaraj Manickam 39368e2f6a Cleans default declaration nullable=False from heat objects
In Heat objects, the default value of nullable attribute is
set in many of the object's fields, which is not required
as oslo object Field defines nullable as False by default

Change-Id: I0164b64c043816f624aeba19561a4a5f8d36689d
Closes-bug: #1439957
2015-04-06 10:33:48 +05:30
He Jie Xu dfc3847f10 Versioned objects - Event
Prototype implementation of oslo.versionedobjects.
This patch adds Event object.

Implements: blueprint versioned-objects

Co-Authored-By: ShaoHe Feng <>
Co-Authored-By: Grzegorz Grasza <>

Change-Id: Ifdff1289aba4bf09130047f63d4e745d591fe16a
2015-03-16 09:26:41 +00:00