Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Optionally linkify URL columns server-side #330

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Oct 14, 2024

Followup da1c99e

We already had the functionality to convert results like
this:

|blah_url|
|--------|
|3,https://test.com|

To a link clientside, so in the UI it looks like this:

<a href="https://test.com">3</a>

With the addition of the recurring report to post automation,
and the existing report to PM automation, we also need to be
able to do this server-side, so reports don't come out malformed
if they have these type of count + URL columns.

Now if one of the automations generates the report, we tell the report
generator and markdown renderer to create an actual markdown link
for these URL columns.

Followup da1c99e

We already had the functionality to convert results like
this:

```
|blah_url|
|--------|
|3,https://test.com|
```

To a link clientside, so in the UI it looks like this:

```
<a href="https://test.com">3</a>
```

With the addition of the recurring report to post automation,
and the existing report to PM automation, we also need to be
able to do this server-side, so reports don't come out malformed
if they have these type of count + URL columns.
@martin-brennan martin-brennan force-pushed the issue/linkify-counts-url-field branch from a12e2c5 to 6458350 Compare October 14, 2024 04:45
Copy link
Contributor

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

lib/discourse_data_explorer/result_to_markdown.rb Outdated Show resolved Hide resolved
lib/discourse_data_explorer/result_to_markdown.rb Outdated Show resolved Hide resolved
@martin-brennan martin-brennan merged commit 8d19a33 into main Oct 14, 2024
5 checks passed
@martin-brennan martin-brennan deleted the issue/linkify-counts-url-field branch October 14, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants