# \[PAID\] USD 555 for upgrading the discourse-static-pages plugin to the new Discourse API

**URL:** https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655
**Category:** Marketplace
**Created:** [30 juni 2016 om 08:35 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655 "2016-06-30T08:35:05Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![bzg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bzg/32/121671_2.png) [@bzg](https://meta.discourse.org/u/bzg)
#### Post date: [30 juni 2016 om 08:35 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/1 "2016-06-30T08:35:05Z")

</div>

**What would you like done?**

We need our plugin `discourse-static-pages` to use the new Discourse API. See this issue:

[https://github.com/ShareLex/discourse-static-pages/issues/1](https://github.com/ShareLex/discourse-static-pages/issues/1)

The plugin implements a way to have static pages in a Discourse instance. See [this topic](https://meta.discourse.org/t/easy-to-use-static-pages-plugin/36280) for more.

**When do you need it done?**

Before the end of July.

**What is your budget, in $ USD that you can offer for this task?**

USD 555 / EUR 500 all taxes included.

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [30 juni 2016 om 11:11 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/2 "2016-06-30T11:11:56Z")

</div>

Hey Bastien,

This is incredibly well timed for me, I’ve been afk for the past 3 months or so preparing for and taking exams, and I just finished this week!

So this looks like the perfect opportunity (and incentive) to familiarise myself with the changes which have happened while I’ve been away. I may be a little rusty, given all the time spent recently staring at textbooks rather than computer screens, but now that exams are over I have all the time in the world to spend on it. How does that sound?

---

<div class="post-metadata">

### Author: ![bzg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bzg/32/121671_2.png) [@bzg](https://meta.discourse.org/u/bzg)
#### Post date: [30 juni 2016 om 15:47 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/3 "2016-06-30T15:47:55Z")

</div>

Hi Leo,

it sounds great, thanks for your answer!

If you agree to take the challenge, can you send me a private message with your email address?

If you do the job, we will probably finance another 500€ bounty for the other github issues, which are mostly enhancements. In fact, we want to give enough incentives for someone to step up as a maintainer for this plugin which we think can be really useful.

Thanks!

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [3 juli 2016 om 17:53 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/4 "2016-07-03T17:53:38Z")

</div>

@bzg do you need backwards compatibility with versions of Discourse which don’t have plugin api support, because I’ve run into a little problem trying to achieve that:

> [@A versioned API for client side plugins](https://meta.discourse.org/t/a-new-versioned-api-for-client-side-plugins/40051/36):
>
> It may well be that there are no versions of Discourse for which noApi support is needed anymore, so this might be irrelevant, but I can’t seem to work out how to import a module which doesn’t exist in later versions of Discourse, in order to provide backwards compatibility, without breaking the plugin in those later versions. The completely expected error I get (in the later versions) is: Error: Could not find module `discourse/components/hamburger-menu` imported from `discourse/plugins/stati…

Otherwise, I’m mostly done. I still need to blow the cobwebs out of my docker environment to test the plugin in a production environment, and to ensure the functionality now matches the functionality before, but once I’ve done that I think I’m all done and I’ll send a pull request your way.

---

<div class="post-metadata">

### Author: ![bzg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bzg/32/121671_2.png) [@bzg](https://meta.discourse.org/u/bzg)
#### Post date: [3 juli 2016 om 21:00 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/5 "2016-07-03T21:00:00Z")

</div>

> [@LeoMcA](#):
>
> @bzg do you need backwards compatibility with versions of Discourse which don’t have plugin api support

No, we don’t need such backward compatibility. It’s better to have it, of course, but this is not required for this bounty. The Discourse we run is \>1.6.

Thanks for your fast-paced development!

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [11 juli 2016 om 21:41 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/6 "2016-07-11T21:41:34Z")

</div>

(EDIT: because you forget to state the obvious when it’s so close to bedtime)

I’ve finally got round to submitting the pull request. Sorry about the unexplained delay, I had been trying to get docker to work with a (now ancient) version of Discourse which the plugin in its current state can run on, but I couldn’t wrap my head around it. And then I ran out of time in the week.

So, hopefully, it works as it did before. From reading the code before it works as I would expect that code to work, but you’ll have to let me know.

[https://github.com/ShareLex/discourse-static-pages/pull/6](https://github.com/ShareLex/discourse-static-pages/pull/6)

> [@bzg](#):
>
> The Discourse we run is \>1.6.

Also, are you running `beta` or `tests-passed`? I ask because in [the `tests-passed` branch (and the next beta release)](https://meta.discourse.org/t/now-in-master-es6-modules-text-rendering/46815/25) the markdown engine has been moved to a module which needs to be imported, which breaks the code as it is in those branches.

It’s simple to import the module, but then it won’t work in the current `beta` and `stable` branches. It would be possible to conditionally require it, but that gets a bit messy.

---

<div class="post-metadata">

### Author: ![bzg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bzg/32/121671_2.png) [@bzg](https://meta.discourse.org/u/bzg)
#### Post date: [12 juli 2016 om 10:54 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/7 "2016-07-12T10:54:49Z")

</div>

Hi Leo,

thanks a lot for your work! And no problem at all with the delay, anytime in July is perfectly fine.

We are on the `tests-passed` branch. I just performed an upgrade and we are now on [86b3de51](https://github.com/discourse/discourse/commit/86b3de510bbf7fdd22da7f2b38b8a1d330506ec8).

As I understand it, I would need to update our `app.yml` file to download the markdown module, is that so?

I want to keep the plugin as straightforward as possible, with no tricky requirement - let me know what’s the best route to take, and then I’ll merge your PR and test it on the server.

Best,

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [12 juli 2016 om 11:42 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/8 "2016-07-12T11:42:45Z")

</div>

Not quite, it’s a file a file in the plugin which needs to import the module. I’ve pushed a commit which does this, so now it should work on `tests-passed` (it does locally).

[https://github.com/LeoMcA/discourse-static-pages/commit/0acd62bce172bc6e86d4955ac0e604e5cea7d8e8](https://github.com/LeoMcA/discourse-static-pages/commit/0acd62bce172bc6e86d4955ac0e604e5cea7d8e8)

---

<div class="post-metadata">

### Author: ![bzg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bzg/32/121671_2.png) [@bzg](https://meta.discourse.org/u/bzg)
#### Post date: [19 juli 2016 om 07:43 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/9 "2016-07-19T07:43:40Z")

</div>

I merged the PR on github, thank you very much! I hope we will have other opportunities to work with you.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [18 augustus 2016 om 07:43 UTC](https://meta.discourse.org/t/paid-usd-555-for-upgrading-the-discourse-static-pages-plugin-to-the-new-discourse-api/46655/10 "2016-08-18T07:43:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
