Browse Source

fix(redux-state-context): Fix not showing data (#20152)

Priscila Oliveira 4 years ago
parent
commit
f5f3034e60

+ 2 - 2
src/sentry/interfaces/contexts.py

@@ -7,7 +7,7 @@ from django.utils.encoding import force_text
 
 from sentry.interfaces.base import Interface
 from sentry.utils.json import prune_empty_keys
-from sentry.utils.safe import get_path, trim
+from sentry.utils.safe import get_path
 
 __all__ = ("Contexts",)
 
@@ -37,7 +37,7 @@ class ContextType(object):
     def __init__(self, alias, data):
         self.alias = alias
         ctx_data = {}
-        for key, value in six.iteritems(trim(data)):
+        for key, value in six.iteritems(data):
             # we use simple checks here, rather than ' in set()' to avoid
             # issues with maps/lists
             if value is not None and value != "":

+ 0 - 1
tests/snuba/api/endpoints/test_organization_event_details.py

@@ -201,7 +201,6 @@ class OrganizationEventDetailsEndpointTest(APITestCase, SnubaTestCase):
         assert trace["trace_id"] == original_trace["trace_id"]
         assert trace["span_id"] == original_trace["span_id"]
         assert trace["parent_span_id"] == original_trace["parent_span_id"]
-        assert trace["description"].endswith("...")
         assert trace["description"][:-3] in original_trace["description"]
 
     def test_blank_fields(self):