_reloadMetadata(event) {
    fetch(this.projectServiceURL + "/projects/" + this.system + "/" + this.selectedProject.name, {
      method: "GET",
      headers: Auth.getAuthHeaderWithSub()
    }).then(response => {
      if(!response.ok) throw Error(response.status);
      return response.json();
    }).then(data => {
      const metadata = data.metadata;

      if(this.y) {
        // update metadata in yjs room => this will also update it in this.selectedProject automatically
        this.y.share.data.set("projectMetadata", metadata);
      }
    });
  }
/**
   * Gets called on the "metadata-reload-request" event and re-fetches the metadata of the currently selected
   * project. The fetched metadata gets put into the project's Yjs room.
   * This event should be used if the metadata got updated from somewhere else than the frontend, because then
   * using the "metadata-change-request" event is not working anymore as the project-list contains out-of-date
   * metadata and is not able to send the update metadata request to the project service successfully.
   * @param event
   * @private
   */
Gets called on the "metadata-reload-request" event and re-fetches the metadata of the currently selected
project. The fetched metadata gets put into the project's Yjs room.
Gets called on the " metadata - reload - request " event and re - fetches the metadata of the currently selected project . The fetched metadata gets put into the project ' s Yjs room .
_reloadMetadata(event) {
    fetch(this.projectServiceURL + "/projects/" + this.system + "/" + this.selectedProject.name, {
      method: "GET",
      headers: Auth.getAuthHeaderWithSub()
    }).then(response => {
      if(!response.ok) throw Error(response.status);
      return response.json();
    }).then(data => {
      const metadata = data.metadata;
      if(this.y) {
        this.y.share.data.set("projectMetadata", metadata);
      }
    });
  }
_reloadMetadata ( event ) { fetch ( this . projectServiceURL + "/projects/" + this . system + "/" + this . selectedProject . name , { method : "GET" , headers : Auth . getAuthHeaderWithSub ( ) } ) . then ( response => { if ( ! response . ok ) throw Error ( response . status ) ; return response . json ( ) ; } ) . then ( data => { const metadata = data . metadata ; if ( this . y ) { this . y . share . data . set ( "projectMetadata" , metadata ) ; } } ) ; }
Gets called on the "metadata-reload-request" event and re-fetches the metadata of the currently selected
 project.
Gets called on the " metadata - reload - request " event and re - fetches the metadata of the currently selected project .
// update metadata in yjs room => this will also update it in this.selectedProject automatically