Skip to content

Symbols not rendering correctly #4

Description

@sancarn

This is pretty vital and is a result of numerous issues:

  • All objects are compiled to JSON before being sent to JavaScript and JSON does not support symbols.
  • Even if symbols were supported in JSON, the rendering of Objects doesn't support it. I.E. we might have to create our own HTML elements necessary for rendering Ruby objects.

Ultimately, on the onset we would either have to:

  • Use something other than JSON (maybe XML?)
  • Convert all symbols to symbol objects embedded in JSON e.g. {"__type__":"Symbol", "__name__":"SomeSymbol"}
  • We make "Ruby Hash Notation" which supports symbols directly: {"something"=>"something",:something=>"something else"}. And even then we'd need some way of integrating object properties.

Then when this is done, we would need to create some rendering system for the RHN objects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions