Coder Social home page Coder Social logo

Comments (6)

mihai-sysbio avatar mihai-sysbio commented on June 2, 2024

If I understand correctly, this is issue is only about verifying in the production environment. My follow-up question would be why can't this be verified locally though, knowing it would be the same in the production environment?

from metabolicatlas.

e0 avatar e0 commented on June 2, 2024

The markup (HTML document) in local development mode is not the same as in production. This issue is a reminder to double check that things are done correctly after deploy.

from metabolicatlas.

mihai-sysbio avatar mihai-sysbio commented on June 2, 2024

The markup (HTML document) in local development mode is not the same as in production

@e0 besides the host url changing, what other changes in the HTML should we be aware of?

from metabolicatlas.

e0 avatar e0 commented on June 2, 2024

There is a lot of Vue specific stuff that's helpful during development but is stripped away for production. There is also other type of verifications (which I should have mentioned in the original issue description such as link previews when sending over Slack for example and verifying search engine titles and summaries) that makes more sense to test only on production.

from metabolicatlas.

nanjiangshu avatar nanjiangshu commented on June 2, 2024

Hi @mihai-sysbio and @e0, I've deployed the branch feat/bioschemas_MA-675 on the dev server and verified the Genes page using Schema Markup Validator. The profile looks fine as shown by
https://validator.schema.org/#url=https%3A%2F%2Fdev-metatlas.csbi.chalmers.se%2Fexplore%2FHuman-GEM%2Fgem-browser%2Fgene%2FENSG00000136010

However, title and description are not interpreted correctly by a search engine or Slack.
I've created a simple test page https://pcons1.scilifelab.se/test1.html and it seems Slack can catch the metaInfo.

from metabolicatlas.

e0 avatar e0 commented on June 2, 2024

@nanjiangshu Thanks for deploying and trying this out. I was wondering if it was maybe due to caching but I realized it is probably because these fields for title and description are populated after the webpage already loads and it makes another request to get the component data. To get around this issue, I think we would need to do some SSR. That would be a much larger issue though with changes to our infrastructure so we should probably have a talk before deciding if we want to make this change.

For now, I think the best things to do is to only focus on the bioschemas for genes and metabolites in this issue.

from metabolicatlas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.