Skip to content

User query automatic reconstruct of URL#4360

Merged
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:user-query-reconstruct-url
May 15, 2022
Merged

User query automatic reconstruct of URL#4360
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:user-query-reconstruct-url

Conversation

@Alkarex
Copy link
Copy Markdown
Member

@Alkarex Alkarex commented May 11, 2022

(Invisible through the Web UI, only when working with user configuration files manually)
Avoid the requirement of storing user queries with duplicated information (parsed parameters AND the resulting URL):

Before:

[
	'name' => 'Hello',
	'search' => 'Hello OR World',
	'state' => '3',
	'url' => './?search=Hello+OR+World&state=3',
]

After:

[
	'name' => 'Hello',
	'search' => 'Hello OR World',
	'state' => '3',
]

(Invisible through the Web UI, only when working with configuration files manually)
Avoid the requirement of storing user queries with duplicated information (parsed parameters AND the resulting URL):

Before:
```
[
	'name' => 'Hello',
	'search' => 'Hello OR World',
	'state' => '3',
	'url' => './?search=Hello+OR+World&state=3',
]
```

After:

```
[
	'name' => 'Hello',
	'search' => 'Hello OR World',
	'state' => '3',
]
```
@Alkarex Alkarex added this to the 1.20.0 milestone May 11, 2022
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented May 11, 2022

@aledeg I have not changed it yet, but we could also consider not saving the url parameter at all. Do you remember what the reason was for storing the URL parameter in user queries, when we apparently have the parsed information?

@Alkarex Alkarex merged commit ffd1061 into FreshRSS:edge May 15, 2022
@Alkarex Alkarex deleted the user-query-reconstruct-url branch May 15, 2022 19:53
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request May 16, 2022
Fix bug when taking advantage of FreshRSS#4360
At one place, the raw URL parameter was accessed instead of being reconstructed
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented May 16, 2022

#4371

Alkarex added a commit that referenced this pull request May 17, 2022
Fix bug when taking advantage of #4360
At one place, the raw URL parameter was accessed instead of being reconstructed
@aledeg
Copy link
Copy Markdown
Member

aledeg commented May 19, 2022

I do not remember.
I am sorry to be away of the project right now. Hopefully I will be able to come back soon.

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented May 19, 2022

No worries @aledeg :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants