Files
ObsidianJournal/Daily Notes/2024/08/2024-08-28 (Wednesday).md

2.2 KiB

Work

After a lot of head-banging to get this stupid builder.io query to work for the next.js site's PDP to get product-page content, I finally found the answer. The call to builder needs to look like this:

const content = await builder
    .get('product-page', {
      query: {
        data: {
          logosProductId: `'${logosProductId}'`,
        },
      },
      prerender: false,
    })
    .toPromise();

The part I couldn't get right was the query.data.logosProductId part. The single quotes around the ID appear to be essential.

I also read up on next.js's app routing because that has effects for when/where (server or client) the data is fetched. The older getStaticProps and getServerSideProps don't exist anymore. Basically, unless 'use client;' is set somewhere, it happens on the server.

Meetings

Commerce Scrum

Mitch 1:1

Mitch Myers Went to summer course about Blender which is Python based, got started at Python. Got CS degree, used Java mostly. Started internship at ServantKeeper with Luke Vandament, came over in the acquisition. Did some desktop programming for first year, moved over to website in React with PHP on backend. Did this for 3-4 years, then acquired by Logos. Was on Giving, did something for BEP project (?), did Zapier, ended up on Commerce.

Preference is working on Skeletor/frontend stuff. Interested in new.logos.com stuff. Backend: can do it, it's fine. Frontend feels less stressful.

Comfortable at the moment at SEII level. Wants to keep moving. Feels he has a little ways to go to be senior software engineer.

Edgar 1:1

Edgar Martinez Ricardo interviewed him at his university, started at PriceTravel with Ricardo. Originally from Mexico City, parents and family there.

At PriceTravel, working in MVC, ASP.NET C#, starting with React and Angular.

Like Frontend, Skeletor is good--backend and frontend. Learned a lot from Toby and Mitch. On-call is a little scary. Not very skilled at it--learned a lot. Feeling more comfortable. Was on-call during Christmas. It was quiet! Other times it's been quiet too, high-priority alerts.

Interest in new.logos.com site? Has already taken a few tasks, components on the site. Took time to take course on next.js.