
Dashboards and Apps Serialization in Git
Demo of content serialized in Git, including dashboard JSON structure, model changes, pull request workflow, and future plans for apps as code.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I know a little bit about how to do it. Okay , okay . Now, let's move on to the next demonstration . Okay, so we'll do a demonstration of what Conrad and Keilin have been working on . Well, I've arranged for Conrad to stay here while I'm demonstrating . Because I've already set it up . Well, we've been working with content serialized using Git .
Well, one of the things we want to be sure about is the content structure itself and how it's actually represented in Git . Well, today I'll demonstrate that part. Well, I currently have a dashboard in my personal folder . Well, I've made it so that a pull request is required to publish the changes within the settings .
Well, all the changes I made are linked to this branch. Well , if you go over to this dashboard , this is actually the dashboard inside my hub . There are various model changes here . In other words, there are several tab-specific fields, or what are called query models . This is specific to the tabs that have undergone various model changes.
Additionally, there are changes to the workbook model, which include the creation of new fields, or new measures, and there are also model changes in the branch. Now, let's move to Git and submit a pull request here . I'd like to explain my thoughts on this and then hear your feedback. Our current thinking is that, fundamentally , we already have a structure where the model itself is nested under its own folder , and with this change, only the new field that we've added here will be displayed.
In other words , everything works the same way as it does today . Well, the new feature we've added this time is something like a content folder . Well, there is space within the content . Well, today we only have one hub , but Luke will eventually release a pull request to enable multiple hubs . Well, we anticipate that space will increase , and the hub will be located under the shared folder, under the space structure.
The hub displays the JSON structure of my document . In other words, this is the serialized content portion. Additionally, changes to workbooks and query models will be saved in nested folders, each with its own unique structure . In other words, anything that needs to be reconstructed from this document will be saved under its own folder located here.
Excuse me, let me go back a bit and explain the structure here . There's a space, there's a hub, and this is the name of the identifier. We plan to place metadata types, such as JSON structures, here . Conrad, I'm not sure if you want to talk about this , but we were discussing how to actually find out what this dashboard is , how to find out which models it's linked to, and so on .
We are considering that, but I'm not sure if Conrad would like to comment on it . Yes, so the idea is exactly the same as what Jade said. For various reasons, it's necessary to know which sharing model your content belongs to . For example, is this a Git exchange? Currently, all content is mixed together in one "soup," but when making any modifications with Git operations, we need to be able to select which part of the soup we are actually working with .
In other words, using what we've implemented so far, we can do this by simply calling the content service and telling it to prepare a manifest for the content that was changed in this branch, without needing something like a marker file to filter which content it belongs to . However, when it comes to main tasks like truening, main synchronization, and follower retrieval, if you try to capture edits being retrieved and sync them to Omni , this particular retrieval request needs to consider which model is executing the request and whether it owns this content .
Therefore, there are still several decisions to be made, and we have decided to postpone them until we can actually implement the parts that require them . Of course, I hope those parts will be implemented soon . Now, there's one more thing we need to consider by taking a big step back . I want to let everyone watching know that this is serialized content.
This is the content within the code that includes the dashboard context and all associated model changes, and therefore forms the basis for building content that is completely independent of our system . yes. This is the foundational work that allows someone to write code to build a dashboard, and we want you to understand that you will still have access to all the great features Omni does with independent data models, as well as all the cool features that are normally in the backend .
yes. And one more thing I want to emphasize here is that this is a huge undertaking . We are showing you the initial stages . Many of our demos will ship next week or so , but hopefully this will be done in stages . If all goes well, we should be able to offer something next month, and then it will develop into something more comprehensive over the next few months .
yes. Um, may I ask a question? To what extent is this integrated with the app's code ? Should we consider them as completely independent tasks ? It 's the same process. The serialization structure needs to be finalized , but this fits the requirements and is under consideration. In other words, we're starting to think beyond app code, towards things like content without a model .
For example, since the theme doesn't belong to any specific content category, why is it here? Also, to make this even more complex, will it include spreadsheets and reports ? Is it ideal to be able to serialize the entire app ? That's the goal. Anything that is part of the content needs to be serializable . In other words, whether it's a skill , a context file, or a report , all of these should be available.
It seems Chris has been muted . Yes, I agree that ideas such as skills should also be incorporated into the system . That's absolutely right. However, when thinking about spreadsheets, we need to consider their internal permissions and structure, how they are stored and isolated, and which get repositories they are associated with . Therefore, many things are needed to achieve that .
But yes, that is indeed a grand vision. Yes, that means there's even a debate about whether user content should be serialized , or whether serialization should be permitted . Privacy concerns should be considered in a similar manner. So, there are a lot of things to consider, but I think everyone will want everything, and we need to make everything switchable.
Does this mean that internal and external migration tools will also improve, and that the possibility of converting content from other tools into apps will increase ? That should remain completely unchanged. The API already does those things in both ways . Serialization doesn't necessarily make it easier; in fact, it's more related to portability . It's like a development, staging, and production workflow .
Yes, but you can still do this via API . In other words , all the necessary tools to achieve portability are already in place . All that's left is to make it amazing . That's great. How can I convert a LookML dashboard to a dashboard-only format on a one-to-one basis? To some extent, yes, but it's no different from installation .
This might be going too far, but there's no difference between installing via API and copying the code. Looking at the structure might make it a little easier , but this is literally the difference in storage . Nothing has been reconstructed . Yeah. Okay, everything is in my Slack channel. The ` projgetcontent` method for Slack channels can help answer some of the following questions, but let's move on for now.
Finally, since AI can read code, it may be good at creating these things . That needs to be confirmed . However, these are worth testing once they are released. However, you can still get the code today via the API . Speaking of that...